Skip to content

Instantly share code, notes, and snippets.

@agammahajan1
Created September 30, 2018 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save agammahajan1/5492b3825acab550884dc43fcf5717c6 to your computer and use it in GitHub Desktop.
Save agammahajan1/5492b3825acab550884dc43fcf5717c6 to your computer and use it in GitHub Desktop.
Sample Jenkins Script
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