Skip to content

Instantly share code, notes, and snippets.

Avatar
🥑
Help developers to use Bitrise effectively

Moataz Nabil moatazeldebsy

🥑
Help developers to use Bitrise effectively
View GitHub Profile
View Jenkinsfile
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 {
View bitrise.yml
---
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:
View Jenkinsfile
pipeline {
agent {
// Run on a build agent where we have the Android and iOS are configured
label 'reactNative'
}
environment {
CI = 'true'
}
stages {
View Matchfile
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
View Pluginfile
# Autogenerated by fastlane
#
# Ensure this file is checked in to source control!
gem 'firebase_app_distribution'
gem 'firebase_test_lab'
View Appfile
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
View Fastfile
#### 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"
View bitrise.yml
---
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
Bitrise Example YAML file for Article How to migrate your Android app from Jenkins to Bitrise
View bitrise.yml
---
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: |