Skip to content

Instantly share code, notes, and snippets.

View moatazeldebsy's full-sized avatar
🤖
Empowering QA Engineers, Inspiring Innovation

Moataz Nabil moatazeldebsy

🤖
Empowering QA Engineers, Inspiring Innovation
View GitHub Profile
def appname = "Runner" // This refers to the flutter 'Runner' target.
def xcarchive = "${appname}.xcarchive"
pipeline {
agent { label 'Flutter' } //Change this to whatever your flutter jenkins nodes are labeled.
environment {
DEVELOPER_DIR="/Applications/Xcode.app/Contents/Developer/" //This is necessary for Fastlane to access iOS Build things.
APPCENTER_API_TOKEN = credentials('at-this-moment-you-should-be-with-us')
}
stages {
---
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
trigger_map:
- push_branch: "*"
workflow: primary
- pull_request_source_branch: "*"
workflow: primary
workflows:
pipeline {
agent {
// Run on a build agent where we have the Android and iOS are configured
label 'reactNative'
}
environment {
CI = 'true'
}
stages {
git_url("https://github.com/myteam/iosProfiles.git")
storage_mode("git")
type("development") # The default type, can be: appstore, adhoc, enterprise or development
# For all available options run `fastlane match --help`
# Remove the # in the beginning of the line to enable the other options
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!
gem 'firebase_app_distribution'
gem 'firebase_test_lab'
app_identifier("[[APP_IDENTIFIER]]") # The bundle identifier of your app
apple_id("[[APPLE_ID]]") # Your Apple email address
# For more information about the Appfile, see:
# https://docs.fastlane.tools/advanced/#appfile
#### Setup ####
desc "Fetches development certificates and provisioning profiles"
lane :fetch_dev_certificates do
match(type: 'development', readonly: true, team_id: Bitrise::TeamId, app_identifier: Bitrise::AppIdentifier::Production)
match(type: 'development', readonly: true, team_id: Bitrise::TeamId, app_identifier: Bitrise::TopShelfAppIdentifier::Production)
end
desc "Fetches distribution certificates and provisioning profiles"
---
format_version: '11'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: ios
trigger_map:
- push_branch: release
workflow: iOS CI/CD
workflows:
iOS CI/CD:
steps:
@moatazeldebsy
moatazeldebsy / bitrise.yml
Created May 6, 2021 12:50
Bitrise Example YAML file for Article How to migrate your Android app from Jenkins to Bitrise
---
format_version: '8'
default_step_lib_source: https://github.com/bitrise-io/bitrise-steplib.git
project_type: android
trigger_map:
- push_branch: release
workflow: AndroidCICD
workflows:
AndroidCICD:
description: |