2020-11-09 23:48:31 +00:00
|
|
|
library 'status-react-jenkins@v1.2.5'
|
2020-03-06 15:43:04 +00:00
|
|
|
|
2019-04-02 16:41:33 +00:00
|
|
|
pipeline {
|
2020-05-05 11:32:09 +00:00
|
|
|
agent { label 'linux' }
|
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 */
|
2020-05-05 11:32:09 +00:00
|
|
|
timeout(time: 5, 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
|
|
|
}
|
2020-05-05 11:32:09 +00:00
|
|
|
stage('Play Store Update'){
|
2019-06-12 22:14:39 +00:00
|
|
|
steps { script {
|
2019-04-02 16:41:33 +00:00
|
|
|
withCredentials([
|
2020-05-05 11:32:09 +00:00
|
|
|
string(
|
|
|
|
credentialsId: 'SUPPLY_JSON_KEY_DATA',
|
|
|
|
variable: 'GOOGLE_PLAY_JSON_KEY'
|
2019-04-02 16:41:33 +00:00
|
|
|
),
|
|
|
|
]) {
|
2019-06-12 22:14:39 +00:00
|
|
|
nix.shell(
|
2020-05-05 11:32:09 +00:00
|
|
|
'bundle exec --gemfile=fastlane/Gemfile fastlane android upload_metadata',
|
|
|
|
keepEnv: ['FASTLANE_DISABLE_COLORS', 'GOOGLE_PLAY_JSON_KEY'],
|
2019-11-29 10:20:08 +00:00
|
|
|
attr: 'shells.fastlane',
|
2020-05-05 11:32:09 +00:00
|
|
|
pure: false
|
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
|
|
|
}
|