Created
January 22, 2019 11:03
-
-
Save d-srd/4cefb38843f9d184f58b20a5268e58bc to your computer and use it in GitHub Desktop.
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
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