fix pushing for Jenkinsfile.release too

This commit is contained in:
Jakub Sokołowski 2018-05-16 15:55:09 +02:00
parent df3ec429c9
commit 79ef297bf7
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
1 changed files with 9 additions and 2 deletions

View File

@ -98,8 +98,15 @@ node ('macos1'){
} }
} }
stage('Push Build Tag') { 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) { } catch (e) {
slackSend color: 'bad', message: 'Release build failed to build. ' + env.BUILD_URL slackSend color: 'bad', message: 'Release build failed to build. ' + env.BUILD_URL