add use of --tag
This commit is contained in:
parent
ccbfc5bb7e
commit
99e9316fda
|
@ -63,7 +63,7 @@ node ('macos1'){
|
|||
}
|
||||
|
||||
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 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'
|
||||
|
|
|
@ -66,7 +66,7 @@ node ('macos1'){
|
|||
|
||||
stage('Build (iOS)') {
|
||||
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 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'
|
||||
|
|
|
@ -99,7 +99,7 @@ def getVersionCode = { ->
|
|||
new ByteArrayOutputStream().withStream { stdOut ->
|
||||
exec {
|
||||
workingDir "../"
|
||||
commandLine "./build_no.sh"
|
||||
commandLine "./build_no.sh --tag"
|
||||
standardOutput = stdOut
|
||||
}
|
||||
return stdOut.toString().toInteger()
|
||||
|
|
Loading…
Reference in New Issue