From 3c0fa7feb5fb8bd8a1d4c7b2b8af04b8911a1e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Mon, 7 May 2018 15:13:10 +0200 Subject: [PATCH] move pushing build tag to after deploy stages --- Jenkinsfile.release | 8 ++++---- Jenkinsfile.upload_release | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile.release b/Jenkinsfile.release index 5735cb70d6..ea144154e3 100644 --- a/Jenkinsfile.release +++ b/Jenkinsfile.release @@ -70,10 +70,6 @@ node ('macos1'){ sh 'xcodebuild -exportArchive -exportPath status -archivePath status.xcarchive -exportOptionsPlist ~/archive.plist' } - stage('Push Build Tag') { - sh ('git push --tags') - } - stage('Deploy (Android)') { def artifact_dir = pwd() + '/android/app/build/outputs/apk/release/' println (artifact_dir + 'app-release.apk') @@ -101,6 +97,10 @@ node ('macos1'){ sh ('echo ARTIFACT iOS: ' + ipaUrl) } } + + stage('Push Build Tag') { + sh ('git push --tags') + } } catch (e) { slackSend color: 'bad', message: 'Release build failed to build. ' + env.BUILD_URL throw e diff --git a/Jenkinsfile.upload_release b/Jenkinsfile.upload_release index a131da1d3e..4b6871a0ed 100644 --- a/Jenkinsfile.upload_release +++ b/Jenkinsfile.upload_release @@ -75,10 +75,6 @@ node ('macos1'){ } } - stage('Push build tag') { - sh ('git push --tags') - } - stage('Deploy (Android)') { sh ('bundle exec fastlane android release || exit 0') } @@ -86,6 +82,10 @@ node ('macos1'){ stage('Deploy (iOS)') { sh ('bundle exec fastlane ios release || exit 0') } + + stage('Push build tag') { + sh ('git push --tags') + } } catch (e) { slackSend color: 'bad', message: 'Release build failed uploading to iTC/Play Market. ' + env.BUILD_URL throw e