2022-11-23 18:44:44 +00:00
|
|
|
library 'status-jenkins-lib@v1.6.3'
|
2020-03-06 15:43:04 +00:00
|
|
|
|
2019-04-02 16:41:33 +00:00
|
|
|
pipeline {
|
|
|
|
agent { label 'macos' }
|
2018-03-28 09:15:16 +00:00
|
|
|
|
2019-04-02 16:41:33 +00:00
|
|
|
environment {
|
2019-06-12 22:14:39 +00:00
|
|
|
LANG = 'en_US.UTF-8'
|
|
|
|
LANGUAGE = 'en_US.UTF-8'
|
|
|
|
LC_ALL = 'en_US.UTF-8'
|
2019-11-29 10:20:08 +00:00
|
|
|
TARGET = 'ios'
|
2019-04-02 16:41:33 +00:00
|
|
|
FASTLANE_DISABLE_COLORS = 1
|
2019-10-09 15:37:58 +00:00
|
|
|
/* See nix/README.md */
|
|
|
|
NIX_IGNORE_SYMLINK_STORE = 1
|
|
|
|
/* avoid writing to r/o /nix */
|
|
|
|
GEM_HOME = '~/.rubygems'
|
2019-04-02 16:41:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
options {
|
|
|
|
timestamps()
|
2019-06-12 22:14:39 +00:00
|
|
|
/* Disable concurrent jobs */
|
|
|
|
disableConcurrentBuilds()
|
2019-04-02 16:41:33 +00:00
|
|
|
/* Prevent Jenkins jobs from running forever */
|
|
|
|
timeout(time: 45, unit: 'MINUTES')
|
2019-06-12 22:14:39 +00:00
|
|
|
/* Don't keep more than 50 builds */
|
|
|
|
buildDiscarder(logRotator(numToKeepStr: '50'))
|
2019-04-02 16:41:33 +00:00
|
|
|
}
|
2018-03-28 09:15:16 +00:00
|
|
|
|
2019-04-02 16:41:33 +00:00
|
|
|
stages {
|
2019-06-12 22:14:39 +00:00
|
|
|
stage('Prep') {
|
|
|
|
steps { script {
|
2019-06-04 16:50:29 +00:00
|
|
|
nix.shell(
|
|
|
|
'bundle install --gemfile=fastlane/Gemfile',
|
2020-01-28 12:15:22 +00:00
|
|
|
attr: 'shells.fastlane',
|
2019-10-09 15:37:58 +00:00
|
|
|
)
|
2019-06-12 22:14:39 +00:00
|
|
|
} }
|
2018-11-13 18:35:17 +00:00
|
|
|
}
|
|
|
|
stage('Clean Users'){
|
2019-06-12 22:14:39 +00:00
|
|
|
steps { script {
|
2019-04-02 16:41:33 +00:00
|
|
|
withCredentials([
|
|
|
|
usernamePassword(
|
|
|
|
credentialsId: 'fastlane-match-apple-id',
|
|
|
|
usernameVariable: 'FASTLANE_APPLE_ID',
|
|
|
|
passwordVariable: 'FASTLANE_PASSWORD'
|
|
|
|
),
|
|
|
|
]) {
|
2019-06-12 22:14:39 +00:00
|
|
|
nix.shell(
|
|
|
|
'bundle exec --gemfile=fastlane/Gemfile fastlane ios clean',
|
2020-02-25 21:42:47 +00:00
|
|
|
keepEnv: ['FASTLANE_APPLE_ID', 'FASTLANE_PASSWORD'],
|
2019-11-29 10:20:08 +00:00
|
|
|
attr: 'shells.fastlane',
|
2019-06-12 22:14:39 +00:00
|
|
|
)
|
2019-04-02 16:41:33 +00:00
|
|
|
}
|
2019-06-12 22:14:39 +00:00
|
|
|
} }
|
2018-05-21 14:47:30 +00:00
|
|
|
}
|
2018-11-13 18:35:17 +00:00
|
|
|
}
|
2018-03-28 09:15:16 +00:00
|
|
|
}
|