fix tag pusshing step to use jenkins-status-im credentials

This commit is contained in:
Jakub Sokołowski 2018-05-14 10:10:34 +02:00
parent a2810999a6
commit 68300dbc61
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 9 additions and 1 deletions

View File

@ -83,8 +83,16 @@ node ('macos1'){
sh ('bundle exec fastlane ios release || exit 0')
}
stage('Push build tag') {
sh ('git push --tags')
withCredentials([[
$class: 'UsernamePasswordMultiBinding',
credentialsId: 'jenkins-status-im',
usernameVariable: 'GIT_USER',
passwordVariable: 'GIT_PASS'
]]) {
sh ('git push --tags https://${GIT_USER}:${GIT_PASS}@github.com/status-im/status-react --tags')
}
}
} catch (e) {
slackSend color: 'bad', message: 'Release build failed uploading to iTC/Play Market. ' + env.BUILD_URL