2018-09-21 11:57:06 +00:00
|
|
|
pipeline {
|
2018-12-06 13:56:22 +00:00
|
|
|
agent { label 'fastlane' }
|
2018-09-21 11:57:06 +00:00
|
|
|
|
2018-12-06 13:56:22 +00:00
|
|
|
options {
|
|
|
|
buildDiscarder(logRotator(
|
|
|
|
numToKeepStr: '30',
|
|
|
|
daysToKeepStr: '30',
|
|
|
|
artifactNumToKeepStr: '30',
|
|
|
|
))
|
|
|
|
}
|
2018-05-21 14:47:30 +00:00
|
|
|
|
2018-12-06 13:56:22 +00:00
|
|
|
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"
|
|
|
|
}
|
2018-05-21 14:47:30 +00:00
|
|
|
|
2018-12-06 13:56:22 +00:00
|
|
|
stages {
|
|
|
|
stage('Prep') {
|
|
|
|
steps { script {
|
|
|
|
if (!BRANCH_NAME.startsWith("release/")){
|
|
|
|
error "Wrong branch name format: " + BRANCH_NAME + ", but it should be `release/<version>`"
|
2018-05-21 14:47:30 +00:00
|
|
|
}
|
2018-12-06 13:56:22 +00:00
|
|
|
/* 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') } }
|
2018-05-07 13:13:10 +00:00
|
|
|
}
|
2018-12-06 13:56:22 +00:00
|
|
|
}
|
2018-04-04 16:36:26 +00:00
|
|
|
}
|