From cffa4c575914e3aa0074409e4b8304ac7fcc4fe3 Mon Sep 17 00:00:00 2001 From: Oskar Thoren Date: Tue, 13 Feb 2018 19:37:21 +0800 Subject: [PATCH] Jenkinsfile.release: use BRANCH_NAME Signed-off-by: Eric Dvorsak --- Jenkinsfile.release | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile.release b/Jenkinsfile.release index 7154cc1dff..8d83c98d78 100644 --- a/Jenkinsfile.release +++ b/Jenkinsfile.release @@ -27,12 +27,13 @@ node ('macos1'){ try { stage('Git & Dependencies') { - slackSend color: 'good', message: 'Release build started. ' + env.BUILD_URL - git([url: 'https://github.com/status-im/status-react.git', branch: 'develop']) - // Checkout master because used for iOS Plist version information - sh 'git fetch --tags' + slackSend color: 'good', message: BRANCH_NAME + ' build started. ' + env.BUILD_URL + + checkout scm sh 'git checkout -- .' - sh 'git checkout develop' + sh 'git checkout remotes/origin/' + BRANCH_NAME + sh 'git fetch --tags' + sh 'rm -rf node_modules' sh 'cp .env.prod .env' sh 'lein deps' @@ -95,4 +96,4 @@ node ('macos1'){ def c = (testPassed ? 'good' : 'warning' ) slackSend color: c, message: 'Release build \nTests: ' + (testPassed ? ':+1:' : ':-1:') + ')\nAndroid: ' + apkUrl + '\n iOS: ' + ipaUrl } -} \ No newline at end of file +}