use nix shell for running fastlane ios clean
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
6da2c93a41
commit
33840b7b84
|
@ -2,28 +2,32 @@ pipeline {
|
||||||
agent { label 'macos' }
|
agent { label 'macos' }
|
||||||
|
|
||||||
environment {
|
environment {
|
||||||
LANG = "en_US.UTF-8"
|
LANG = 'en_US.UTF-8'
|
||||||
LANGUAGE = "en_US.UTF-8"
|
LANGUAGE = 'en_US.UTF-8'
|
||||||
LC_ALL = "en_US.UTF-8"
|
LC_ALL = 'en_US.UTF-8'
|
||||||
|
TARGET_OS = 'ios'
|
||||||
FASTLANE_DISABLE_COLORS = 1
|
FASTLANE_DISABLE_COLORS = 1
|
||||||
}
|
}
|
||||||
|
|
||||||
options {
|
options {
|
||||||
timestamps()
|
timestamps()
|
||||||
|
/* Disable concurrent jobs */
|
||||||
|
disableConcurrentBuilds()
|
||||||
/* Prevent Jenkins jobs from running forever */
|
/* Prevent Jenkins jobs from running forever */
|
||||||
timeout(time: 45, unit: 'MINUTES')
|
timeout(time: 45, unit: 'MINUTES')
|
||||||
buildDiscarder(logRotator(numToKeepStr: '100'))
|
/* Don't keep more than 50 builds */
|
||||||
|
buildDiscarder(logRotator(numToKeepStr: '50'))
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
stage('Install Deps'){
|
stage('Prep') {
|
||||||
steps {
|
steps { script {
|
||||||
sh ('bundle install --gemfile=fastlane/Gemfile')
|
nix = load('ci/nix.groovy')
|
||||||
|
nix.shell('bundle install --gemfile=fastlane/Gemfile')
|
||||||
|
} }
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stage('Clean Users'){
|
stage('Clean Users'){
|
||||||
steps {
|
steps { script {
|
||||||
withCredentials([
|
withCredentials([
|
||||||
usernamePassword(
|
usernamePassword(
|
||||||
credentialsId: 'fastlane-match-apple-id',
|
credentialsId: 'fastlane-match-apple-id',
|
||||||
|
@ -31,9 +35,12 @@ pipeline {
|
||||||
passwordVariable: 'FASTLANE_PASSWORD'
|
passwordVariable: 'FASTLANE_PASSWORD'
|
||||||
),
|
),
|
||||||
]) {
|
]) {
|
||||||
sh ('bundle exec --gemfile=fastlane/Gemfile fastlane ios clean')
|
nix.shell(
|
||||||
}
|
'bundle exec --gemfile=fastlane/Gemfile fastlane ios clean',
|
||||||
|
keep: ['FASTLANE_APPLE_ID', 'FASTLANE_PASSWORD']
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -234,10 +234,12 @@ platform :ios do
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "`fastlane ios clean` - remove inactive TestFlight users"
|
desc "`fastlane ios clean` - remove inactive TestFlight users"
|
||||||
desc "uses custom plugin, installed via"
|
|
||||||
desc "`sudo get install fastlane-plugin-clean_testflight_testers`"
|
|
||||||
lane :clean do
|
lane :clean do
|
||||||
clean_testflight_testers(username: ENV["FASTLANE_APPLE_ID"])
|
clean_testflight_testers(
|
||||||
|
username: ENV["FASTLANE_APPLE_ID"],
|
||||||
|
days_of_inactivity: 30,
|
||||||
|
oldest_build_allowed: 2019032709
|
||||||
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
desc "`fastlane ios upload-diawi` - upload .ipa to diawi"
|
desc "`fastlane ios upload-diawi` - upload .ipa to diawi"
|
||||||
|
|
Loading…
Reference in New Issue