This file contains hidden or 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 application for beta') { | |
| when { | |
| expression { | |
| return env.shouldBuild != "false" | |
| } | |
| } | |
| steps { | |
| sh "fastlane buildAppWithGym" | |
| } | |
| } |
This file contains hidden or 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
| desc "Run unit and ui tests" | |
| lane :runTests do | |
| run_tests( | |
| scheme: "MyAppScheme", | |
| #code_coverage: true | |
| ) | |
| end | |
| desc "Create coverage html" | |
| lane :createCoverageReport do |
This file contains hidden or 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('Run Unit and UI Tests') { | |
| when { | |
| expression { | |
| return env.shouldBuild != "false" | |
| } | |
| } | |
| steps { | |
| script { | |
| try { | |
| sh "fastlane runTests" |
This file contains hidden or 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
| desc "Increment build number and commit changes to github" | |
| lane :incrementBuildNumberAndCommit do | |
| ensure_git_status_clean | |
| build_number = increment_build_number | |
| commit_version_bump(message: "[skip ci] Version Bump to #{build_number}") | |
| push_to_git_remote() | |
| end |
This file contains hidden or 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('Increment build number') { | |
| when { | |
| expression { | |
| return env.shouldBuild != "false" | |
| } | |
| } | |
| steps { | |
| sh "fastlane incrementBuildNumberAndCommit" | |
| } | |
| } |
This file contains hidden or 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('Install Pods') { | |
| when { | |
| expression { | |
| return env.shouldBuild != "false" | |
| } | |
| } | |
| steps { | |
| sh "pod install --deployment --repo-update" | |
| } | |
| } |
This file contains hidden or 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 :matchPopulateJenkinsKeychain do | |
| register_devices(devices_file: "./fastlane/devices.txt") | |
| match( | |
| type: "adhoc", | |
| app_identifier: [ | |
| "my.app.identifier" | |
| ] | |
| ) | |
| match( |
This file contains hidden or 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('Populate Jenkins Keychain') { | |
| when { | |
| expression { | |
| return env.shouldBuild != "false" | |
| } | |
| } | |
| steps { | |
| sh "fastlane matchPopulateJenkinsKeychain" | |
| } | |
| } |
This file contains hidden or 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
| docker pull jenkins/jenkins:2.180 |
This file contains hidden or 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
| docker run -d -v jenkins_home:/var/jenkins_home -p 8080:8080 -p 50000:50000 jenkins/jenkins:2.180 |