add use of --tag

This commit is contained in:
Jakub Sokołowski 2018-05-07 14:42:37 +02:00 committed by Jakub Sokołowski
parent ccbfc5bb7e
commit 99e9316fda
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@ node ('macos1'){
} }
stage('Build (iOS)') { stage('Build (iOS)') {
def build_no = sh(returnStdout: true, script: './build_no.sh').trim() def build_no = sh(returnStdout: true, script: './build_no.sh --tag').trim()
sh ('plutil -replace CFBundleShortVersionString -string ' + version + ' ios/StatusIm/Info.plist') sh ('plutil -replace CFBundleShortVersionString -string ' + version + ' ios/StatusIm/Info.plist')
sh ('plutil -replace CFBundleVersion -string ' + build_no + ' ios/StatusIm/Info.plist') sh ('plutil -replace CFBundleVersion -string ' + build_no + ' ios/StatusIm/Info.plist')
sh 'export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/StatusIm.xcworkspace -scheme StatusIm -configuration release -archivePath status clean archive' sh 'export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/StatusIm.xcworkspace -scheme StatusIm -configuration release -archivePath status clean archive'

View File

@ -66,7 +66,7 @@ node ('macos1'){
stage('Build (iOS)') { stage('Build (iOS)') {
withCredentials([string(credentialsId: 'jenkins_pass', variable: 'password')]) { withCredentials([string(credentialsId: 'jenkins_pass', variable: 'password')]) {
def build_no = sh(returnStdout: true, script: './build_no.sh').trim() def build_no = sh(returnStdout: true, script: './build_no.sh --tag').trim()
sh ('plutil -replace CFBundleShortVersionString -string ' + version + ' ios/StatusIm/Info.plist') sh ('plutil -replace CFBundleShortVersionString -string ' + version + ' ios/StatusIm/Info.plist')
sh ('plutil -replace CFBundleVersion -string ' + build_no + ' ios/StatusIm/Info.plist') sh ('plutil -replace CFBundleVersion -string ' + build_no + ' ios/StatusIm/Info.plist')
sh 'export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/StatusIm.xcworkspace -scheme StatusIm -configuration release -archivePath status clean archive' sh 'export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/StatusIm.xcworkspace -scheme StatusIm -configuration release -archivePath status clean archive'

View File

@ -99,7 +99,7 @@ def getVersionCode = { ->
new ByteArrayOutputStream().withStream { stdOut -> new ByteArrayOutputStream().withStream { stdOut ->
exec { exec {
workingDir "../" workingDir "../"
commandLine "./build_no.sh" commandLine "./build_no.sh --tag"
standardOutput = stdOut standardOutput = stdOut
} }
return stdOut.toString().toInteger() return stdOut.toString().toInteger()