This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node(label: 'ios') { | |
def deploy; | |
def utils; | |
String RVM = "ruby-2.5.0" | |
ansiColor('xterm') { | |
withEnv(["LANG=en_US.UTF-8", "LANGUAGE=en_US.UTF-8", "LC_ALL=en_US.UTF-8"]) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node(label: 'ios') { | |
def deploy; | |
def utils; | |
String RVM = "ruby-2.5.0" | |
ansiColor('xterm') { | |
withEnv(["LANG=en_US.UTF-8", "LANGUAGE=en_US.UTF-8", "LC_ALL=en_US.UTF-8"]) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stage('Build') { | |
withEnv(["FASTLANE_USER=fastlane_user_email_address"]) { | |
withCredentials([ | |
string([ | |
credentialsId:'match_password_id', | |
variable: 'MATCH_PASSWORD' | |
]), | |
string([ | |
credentialsId: 'fastlane_password_id', | |
variable: 'FASTLANE_PASSWORD']), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
stage('Build') { | |
withEnv(["FASTLANE_USER=fastlane_user_email_address"]) { | |
withCredentials([ | |
string([ | |
credentialsId:'match_password_id', | |
variable: 'MATCH_PASSWORD' | |
]), | |
string([ | |
credentialsId: 'fastlane_password_id', | |
variable: 'FASTLANE_PASSWORD']), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lane :test do | |
scan( | |
clean: true, | |
devices: ["iPhone X"], | |
workspace: "our_project.xcworkspace", | |
scheme: "production_scheme", | |
code_coverage: true, | |
output_directory: "./test_output", | |
output_types: "html,junit" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lane :build do | |
match( | |
git_branch: "the_branch_of_the_repo_with_the_prov_profile", | |
username: "github_username", | |
git_url: "github_repo_with_prov_profiles", | |
type: "appstore", | |
app_identifier: "production_app_identifier", | |
force: true) | |
version = get_version_number( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def withRvm(version, cl) { | |
withRvm(version, "executor-${env.EXECUTOR_NUMBER}") { | |
cl() | |
} | |
} | |
def withRvm(version, gemset, cl) { | |
RVM_HOME="$env.HOME/.rvm" | |
paths = [ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
node(label: 'ios') { | |
def deploy; | |
def utils; | |
String RVM = "ruby-2.5.0" | |
ansiColor('xterm') { | |
withEnv(["LANG=en_US.UTF-8", "LANGUAGE=en_US.UTF-8", "LC_ALL=en_US.UTF-8"]) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fastlane_version "2.75.0" | |
default_platform :ios | |
lane :test do | |
scan( | |
clean: true, | |
devices: ["iPhone X"], | |
workspace: "our_project.xcworkspace", | |
scheme: "production_scheme", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def deploy() { | |
stage('Checkout') { | |
checkout scm | |
} | |
stage('Install dependencies') { | |
sh 'gem install bundler' | |
sh 'bundle update' | |
sh 'bundle exec pod repo update' |