From 79ef297bf75773df4b0a1d4bfab06538b8d469f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 16 May 2018 15:55:09 +0200 Subject: [PATCH] fix pushing for Jenkinsfile.release too --- Jenkinsfile.release | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile.release b/Jenkinsfile.release index ea144154e3..a1d90738a1 100644 --- a/Jenkinsfile.release +++ b/Jenkinsfile.release @@ -98,8 +98,15 @@ node ('macos1'){ } } - stage('Push Build Tag') { - sh ('git push --tags') + 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 to build. ' + env.BUILD_URL