don't create .version, it's redundant
This commit is contained in:
parent
b612fccb70
commit
7a70bc185e
|
@ -22,7 +22,7 @@ timeout(90) {
|
|||
def apkUrl = ''
|
||||
def ipaUrl = ''
|
||||
def testPassed = true
|
||||
def latest_tag;
|
||||
def version;
|
||||
|
||||
load "$HOME/env.groovy"
|
||||
|
||||
|
@ -33,11 +33,9 @@ timeout(90) {
|
|||
|
||||
checkout scm
|
||||
|
||||
version = readFile "${env.WORKSPACE}/VERSION"
|
||||
|
||||
sh 'git fetch --tags'
|
||||
latest_tag = sh(
|
||||
returnStdout: true,
|
||||
script: 'git describe --tags `git rev-list --tags=\'[0-9]*.[0-9]*.[0-9]*\' --max-count=1`'
|
||||
).trim()
|
||||
sh 'rm -rf node_modules'
|
||||
sh 'cp .env.nightly .env'
|
||||
sh 'lein deps'
|
||||
|
@ -62,7 +60,7 @@ timeout(90) {
|
|||
stage('Build (iOS)') {
|
||||
withCredentials([string(credentialsId: 'jenkins_pass', variable: 'password')]) {
|
||||
def build_no = sh(returnStdout: true, script: './scripts/build_no.sh --tag').trim()
|
||||
sh ('plutil -replace CFBundleShortVersionString -string ' + latest_tag + ' 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 'export RCT_NO_LAUNCH_PACKAGER=true && xcodebuild -workspace ios/StatusIm.xcworkspace -scheme StatusIm -configuration release -archivePath status clean archive'
|
||||
sh ('security unlock-keychain -p ' + password + ' login.keychain')
|
||||
|
|
|
@ -38,7 +38,6 @@ timeout(90) {
|
|||
checkout scm
|
||||
|
||||
version = readFile "${env.WORKSPACE}/VERSION"
|
||||
sh 'echo "' + version + '" > .version'
|
||||
|
||||
sh 'git fetch --tags'
|
||||
|
||||
|
|
|
@ -39,8 +39,6 @@ timeout(90) {
|
|||
|
||||
version = readFile "${env.WORKSPACE}/VERSION"
|
||||
|
||||
sh 'echo "' + version + '" > .version'
|
||||
|
||||
sh 'git fetch --tags'
|
||||
|
||||
sh 'rm -rf node_modules'
|
||||
|
|
Loading…
Reference in New Issue