Skip to content

Instantly share code, notes, and snippets.

@d-srd
Created January 22, 2019 11:03
Show Gist options
  • Save d-srd/4cefb38843f9d184f58b20a5268e58bc to your computer and use it in GitHub Desktop.
Save d-srd/4cefb38843f9d184f58b20a5268e58bc to your computer and use it in GitHub Desktop.
pipeline {
agent {
label "osx"
}
stages {
stage("Bitbucket checkout") {
steps {
slackSend channel: 'Building the app’
checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [[$class: "CleanBeforeCheckout"]], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'creds', url: 'git@bitbucket.org/agitrepo.git']]])
}
}
stage("Build") {
steps {
withEnv(['$ENVVARS']) {
withCredentials([usernamePassword(credentialsId: 'creds', passwordVariable: 'FASTLANE_PASSWORD', usernameVariable: 'MATCH_USERNAME')]) {
sh "create_temp_keychain.sh"
sh "fastlane provision"
}
}
}
post {
success {
slackSend channel: 'success building app'
}
failure {
slackSend channel: 'failure building app'
}
}
}
}
options {
ansiColor("xterm")
timestamps()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment