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:
parent
981eb135aa
commit
e6b4553ce1
|
@ -50,7 +50,7 @@ timeout(90) {
|
|||
stage('Tag Build') {
|
||||
withCredentials([[
|
||||
$class: 'UsernamePasswordMultiBinding',
|
||||
credentialsId: 'jenkins-status-im',
|
||||
credentialsId: 'status-im-auto',
|
||||
usernameVariable: 'GIT_USER',
|
||||
passwordVariable: 'GIT_PASS'
|
||||
]]) {
|
||||
|
|
|
@ -51,7 +51,7 @@ timeout(90) {
|
|||
stage('Tag Build') {
|
||||
withCredentials([[
|
||||
$class: 'UsernamePasswordMultiBinding',
|
||||
credentialsId: 'jenkins-status-im',
|
||||
credentialsId: 'status-im-auto',
|
||||
usernameVariable: 'GIT_USER',
|
||||
passwordVariable: 'GIT_PASS'
|
||||
]]) {
|
||||
|
|
|
@ -55,7 +55,7 @@ timeout(90) {
|
|||
stage('Tag Build') {
|
||||
withCredentials([[
|
||||
$class: 'UsernamePasswordMultiBinding',
|
||||
credentialsId: 'jenkins-status-im',
|
||||
credentialsId: 'status-im-auto',
|
||||
usernameVariable: 'GIT_USER',
|
||||
passwordVariable: 'GIT_PASS'
|
||||
]]) {
|
||||
|
@ -81,17 +81,6 @@ timeout(90) {
|
|||
stage('Deploy (Android)') {
|
||||
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) {
|
||||
slackSend color: 'bad', message: 'Release build failed uploading to the Play Market. ' + env.BUILD_URL
|
||||
throw e
|
||||
|
|
|
@ -54,7 +54,7 @@ timeout(90) {
|
|||
stage('Tag Build') {
|
||||
withCredentials([[
|
||||
$class: 'UsernamePasswordMultiBinding',
|
||||
credentialsId: 'jenkins-status-im',
|
||||
credentialsId: 'status-im-auto',
|
||||
usernameVariable: 'GIT_USER',
|
||||
passwordVariable: 'GIT_PASS'
|
||||
]]) {
|
||||
|
@ -87,17 +87,6 @@ timeout(90) {
|
|||
stage('Deploy (iOS)') {
|
||||
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) {
|
||||
slackSend color: 'bad', message: 'Release build failed uploading to iTunes Connect. ' + env.BUILD_URL
|
||||
throw e
|
||||
|
|
Loading…
Reference in New Issue