fix git tag push credentials, needs to use token instead of pass

Signed-off-by: Dmitry Novotochinov <dmitry.novot@gmail.com>
This commit is contained in:
Jakub Sokołowski 2018-08-08 11:00:34 -04:00 committed by Dmitry Novotochinov
parent 981eb135aa
commit e6b4553ce1
No known key found for this signature in database
GPG Key ID: 43D1DAF5AD39C927
4 changed files with 4 additions and 26 deletions

View File

@ -50,7 +50,7 @@ timeout(90) {
stage('Tag Build') { stage('Tag Build') {
withCredentials([[ withCredentials([[
$class: 'UsernamePasswordMultiBinding', $class: 'UsernamePasswordMultiBinding',
credentialsId: 'jenkins-status-im', credentialsId: 'status-im-auto',
usernameVariable: 'GIT_USER', usernameVariable: 'GIT_USER',
passwordVariable: 'GIT_PASS' passwordVariable: 'GIT_PASS'
]]) { ]]) {

View File

@ -51,7 +51,7 @@ timeout(90) {
stage('Tag Build') { stage('Tag Build') {
withCredentials([[ withCredentials([[
$class: 'UsernamePasswordMultiBinding', $class: 'UsernamePasswordMultiBinding',
credentialsId: 'jenkins-status-im', credentialsId: 'status-im-auto',
usernameVariable: 'GIT_USER', usernameVariable: 'GIT_USER',
passwordVariable: 'GIT_PASS' passwordVariable: 'GIT_PASS'
]]) { ]]) {

View File

@ -55,7 +55,7 @@ timeout(90) {
stage('Tag Build') { stage('Tag Build') {
withCredentials([[ withCredentials([[
$class: 'UsernamePasswordMultiBinding', $class: 'UsernamePasswordMultiBinding',
credentialsId: 'jenkins-status-im', credentialsId: 'status-im-auto',
usernameVariable: 'GIT_USER', usernameVariable: 'GIT_USER',
passwordVariable: 'GIT_PASS' passwordVariable: 'GIT_PASS'
]]) { ]]) {
@ -81,17 +81,6 @@ timeout(90) {
stage('Deploy (Android)') { stage('Deploy (Android)') {
sh ('bundle exec fastlane android release') sh ('bundle exec fastlane android release')
} }
stage('Push build tag') {
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 uploading to the Play Market. ' + env.BUILD_URL slackSend color: 'bad', message: 'Release build failed uploading to the Play Market. ' + env.BUILD_URL
throw e throw e

View File

@ -54,7 +54,7 @@ timeout(90) {
stage('Tag Build') { stage('Tag Build') {
withCredentials([[ withCredentials([[
$class: 'UsernamePasswordMultiBinding', $class: 'UsernamePasswordMultiBinding',
credentialsId: 'jenkins-status-im', credentialsId: 'status-im-auto',
usernameVariable: 'GIT_USER', usernameVariable: 'GIT_USER',
passwordVariable: 'GIT_PASS' passwordVariable: 'GIT_PASS'
]]) { ]]) {
@ -87,17 +87,6 @@ timeout(90) {
stage('Deploy (iOS)') { stage('Deploy (iOS)') {
sh ('bundle exec fastlane ios release') sh ('bundle exec fastlane ios release')
} }
stage('Push build tag') {
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 uploading to iTunes Connect. ' + env.BUILD_URL slackSend color: 'bad', message: 'Release build failed uploading to iTunes Connect. ' + env.BUILD_URL
throw e throw e