move pushing build tag to after deploy stages

This commit is contained in:
Jakub Sokołowski 2018-05-07 15:13:10 +02:00 committed by Jakub Sokołowski
parent 6aa2edd2b5
commit 3c0fa7feb5
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
2 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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