don't create .version, it's redundant

This commit is contained in:
Jakub Sokołowski 2018-05-24 11:55:56 +02:00
parent b612fccb70
commit 7a70bc185e
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 4 additions and 9 deletions

View File

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

View File

@ -38,7 +38,6 @@ timeout(90) {
checkout scm
version = readFile "${env.WORKSPACE}/VERSION"
sh 'echo "' + version + '" > .version'
sh 'git fetch --tags'

View File

@ -39,8 +39,6 @@ timeout(90) {
version = readFile "${env.WORKSPACE}/VERSION"
sh 'echo "' + version + '" > .version'
sh 'git fetch --tags'
sh 'rm -rf node_modules'