fix build numbers for release builds
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
6364b886e4
commit
6c6d9bc268
|
@ -26,11 +26,13 @@ pipeline {
|
|||
stages {
|
||||
stage('Prep') {
|
||||
steps { script {
|
||||
/* Necessary to load methods */
|
||||
mobile = load 'ci/mobile.groovy'
|
||||
cmn = load 'ci/common.groovy'
|
||||
mobile.prep('release')
|
||||
} }
|
||||
/* Necessary to load methods */
|
||||
mobile = load 'ci/mobile.groovy'
|
||||
cmn = load 'ci/common.groovy'
|
||||
mobile.prep('release')
|
||||
/* Run at start to void mismatched numbers */
|
||||
cmn.buildNumber()
|
||||
} }
|
||||
}
|
||||
stage('Lint') {
|
||||
steps { script { cmn.runLint() } }
|
||||
|
|
|
@ -1,48 +1,49 @@
|
|||
pipeline {
|
||||
agent { label 'fastlane' }
|
||||
agent { label 'fastlane' }
|
||||
|
||||
options {
|
||||
buildDiscarder(
|
||||
logRotator(
|
||||
numToKeepStr: '30',
|
||||
daysToKeepStr: '30',
|
||||
artifactNumToKeepStr: '30',
|
||||
))
|
||||
}
|
||||
options {
|
||||
buildDiscarder(logRotator(
|
||||
numToKeepStr: '30',
|
||||
daysToKeepStr: '30',
|
||||
artifactNumToKeepStr: '30',
|
||||
))
|
||||
}
|
||||
|
||||
environment {
|
||||
BUILD_PLATFORM = 'ios'
|
||||
LANG = 'en_US.UTF-8'
|
||||
LANGUAGE = 'en_US.UTF-8'
|
||||
LC_ALL = 'en_US.UTF-8'
|
||||
FASTLANE_DISABLE_COLORS=1
|
||||
REALM_DISABLE_ANALYTICS=1
|
||||
BUNDLE_PATH = "${HOME}/.bundle"
|
||||
}
|
||||
environment {
|
||||
BUILD_PLATFORM = 'ios'
|
||||
LANG = 'en_US.UTF-8'
|
||||
LANGUAGE = 'en_US.UTF-8'
|
||||
LC_ALL = 'en_US.UTF-8'
|
||||
FASTLANE_DISABLE_COLORS=1
|
||||
REALM_DISABLE_ANALYTICS=1
|
||||
BUNDLE_PATH = "${HOME}/.bundle"
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Prep') {
|
||||
steps { script {
|
||||
if (!BRANCH_NAME.startsWith("release/")){
|
||||
error "Wrong branch name format: " + BRANCH_NAME + ", but it should be `release/<version>`"
|
||||
}
|
||||
/* Necessary to load methods */
|
||||
mobile = load 'ci/mobile.groovy'
|
||||
cmn = load 'ci/common.groovy'
|
||||
mobile.prep('release')
|
||||
} }
|
||||
}
|
||||
stage('Lint') {
|
||||
steps { script { cmn.runLint() } }
|
||||
}
|
||||
stage('Tests') {
|
||||
steps { script { cmn.runTests() } }
|
||||
}
|
||||
stage('Build') {
|
||||
steps { script { mobile.leinBuild('ios') } }
|
||||
}
|
||||
stage('Compile') {
|
||||
steps { script { api = mobile.ios.compile('testflight') } }
|
||||
stages {
|
||||
stage('Prep') {
|
||||
steps { script {
|
||||
if (!BRANCH_NAME.startsWith("release/")){
|
||||
error "Wrong branch name format: " + BRANCH_NAME + ", but it should be `release/<version>`"
|
||||
}
|
||||
/* Necessary to load methods */
|
||||
mobile = load 'ci/mobile.groovy'
|
||||
cmn = load 'ci/common.groovy'
|
||||
mobile.prep('release')
|
||||
/* Run at start to void mismatched numbers */
|
||||
cmn.buildNumber()
|
||||
} }
|
||||
}
|
||||
stage('Lint') {
|
||||
steps { script { cmn.runLint() } }
|
||||
}
|
||||
stage('Tests') {
|
||||
steps { script { cmn.runTests() } }
|
||||
}
|
||||
stage('Build') {
|
||||
steps { script { mobile.leinBuild('ios') } }
|
||||
}
|
||||
stage('Compile') {
|
||||
steps { script { api = mobile.ios.compile('testflight') } }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue