move build_no.sh to scripts/

This commit is contained in:
Jakub Sokołowski 2018-05-23 11:24:54 +02:00
parent 09c11e9061
commit bf0e8ddd5f
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
4 changed files with 3 additions and 3 deletions

View File

@ -64,7 +64,7 @@ timeout(90) {
}
stage('Build (iOS)') {
def build_no = sh(returnStdout: true, script: './build_no.sh --tag').trim()
def build_no = sh(returnStdout: true, script: './scripts/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'

View File

@ -65,7 +65,7 @@ timeout(90) {
stage('Build (iOS)') {
withCredentials([string(credentialsId: 'jenkins_pass', variable: 'password')]) {
def build_no = sh(returnStdout: true, script: './build_no.sh --tag').trim()
def build_no = sh(returnStdout: true, script: './scripts/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'

View File

@ -98,7 +98,7 @@ def enableProguardInReleaseBuilds = false
def getVersionCode = { ->
new ByteArrayOutputStream().withStream { stdOut ->
exec {
commandLine "sh", "../../build_no.sh", "--tag"
commandLine "sh", "../../scripts/build_no.sh", "--tag"
standardOutput = stdOut
errorOutput = System.err
}