Created
September 30, 2018 19:07
-
-
Save agammahajan1/5492b3825acab550884dc43fcf5717c6 to your computer and use it in GitHub Desktop.
Sample Jenkins Script
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 { | |
stage('Checkout') { | |
checkout([$class: 'GitSCM', branches: [[name: '*/$branch']], | |
doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], | |
userRemoteConfigs: [[credentialsId:'/$githubToken' , url: 'gihub project url']]]) | |
} | |
stage('Environment/Bundles Setup') { | |
sh "Scripts/change_server.sh $server" | |
sh "pod install --repo-update" | |
} | |
stage('Clean') { | |
sh 'fastlane clean_xcode' | |
} | |
stage('Code Sign') { | |
sh 'fastlane codesign method:"adhoc"' | |
} | |
stage('Create Build') { | |
sh 'fastlane create_build' | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment