2023-06-29 13:40:43 +00:00
|
|
|
#!/usr/bin/env groovy
|
2024-10-23 07:15:59 +00:00
|
|
|
library 'status-jenkins-lib@v1.9.13'
|
2021-08-06 08:19:47 +00:00
|
|
|
|
|
|
|
pipeline {
|
|
|
|
agent { label 'linux' }
|
|
|
|
|
|
|
|
environment {
|
2024-03-27 12:07:45 +00:00
|
|
|
LANG = 'en_US.UTF-8'
|
|
|
|
LANGUAGE = 'en_US.UTF-8'
|
|
|
|
LC_ALL = 'en_US.UTF-8'
|
|
|
|
PLATFORM = 'ios'
|
2021-08-06 08:19:47 +00:00
|
|
|
FASTLANE_DISABLE_COLORS = 1
|
|
|
|
/* avoid writing to r/o /nix */
|
|
|
|
GEM_HOME = '~/.rubygems'
|
|
|
|
}
|
|
|
|
|
|
|
|
options {
|
|
|
|
timestamps()
|
|
|
|
/* Disable concurrent jobs */
|
|
|
|
disableConcurrentBuilds()
|
|
|
|
/* Prevent Jenkins jobs from running forever */
|
|
|
|
timeout(time: 5, unit: 'MINUTES')
|
|
|
|
/* Don't keep more than 50 builds */
|
|
|
|
buildDiscarder(logRotator(numToKeepStr: '50'))
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
|
|
|
stage('Prep') {
|
|
|
|
steps { script {
|
|
|
|
nix.shell(
|
|
|
|
'bundle install --gemfile=fastlane/Gemfile',
|
|
|
|
attr: 'shells.fastlane',
|
|
|
|
)
|
|
|
|
} }
|
|
|
|
}
|
|
|
|
stage('Play Store Update'){
|
|
|
|
steps { script {
|
|
|
|
withCredentials([
|
|
|
|
string(
|
|
|
|
credentialsId: 'google-play-api-key-json',
|
|
|
|
variable: 'GOOGLE_PLAY_JSON_KEY'
|
|
|
|
),
|
|
|
|
]) {
|
|
|
|
nix.shell(
|
|
|
|
'bundle exec --gemfile=fastlane/Gemfile fastlane android upload_metadata',
|
|
|
|
keepEnv: ['FASTLANE_DISABLE_COLORS', 'GOOGLE_PLAY_JSON_KEY'],
|
|
|
|
attr: 'shells.fastlane',
|
|
|
|
pure: false
|
|
|
|
)
|
|
|
|
}
|
|
|
|
} }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|