2020-04-26 14:40:06 +02:00
|
|
|
library 'status-react-jenkins@v1.1.1'
|
2020-03-06 16:43:04 +01:00
|
|
|
|
2019-04-02 18:41:33 +02:00
|
|
|
pipeline {
|
2020-05-05 13:32:09 +02:00
|
|
|
agent { label 'linux' }
|
2018-03-28 11:15:16 +02:00
|
|
|
|
2019-04-02 18:41:33 +02:00
|
|
|
environment {
|
2019-06-12 18:14:39 -04:00
|
|
|
LANG = 'en_US.UTF-8'
|
|
|
|
LANGUAGE = 'en_US.UTF-8'
|
|
|
|
LC_ALL = 'en_US.UTF-8'
|
2019-11-29 11:20:08 +01:00
|
|
|
TARGET = 'ios'
|
2019-04-02 18:41:33 +02:00
|
|
|
FASTLANE_DISABLE_COLORS = 1
|
2019-10-09 18:37:58 +03:00
|
|
|
/* See nix/README.md */
|
|
|
|
NIX_IGNORE_SYMLINK_STORE = 1
|
|
|
|
/* avoid writing to r/o /nix */
|
|
|
|
GEM_HOME = '~/.rubygems'
|
2019-04-02 18:41:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
options {
|
|
|
|
timestamps()
|
2019-06-12 18:14:39 -04:00
|
|
|
/* Disable concurrent jobs */
|
|
|
|
disableConcurrentBuilds()
|
2019-04-02 18:41:33 +02:00
|
|
|
/* Prevent Jenkins jobs from running forever */
|
2020-05-05 13:32:09 +02:00
|
|
|
timeout(time: 5, unit: 'MINUTES')
|
2019-06-12 18:14:39 -04:00
|
|
|
/* Don't keep more than 50 builds */
|
|
|
|
buildDiscarder(logRotator(numToKeepStr: '50'))
|
2019-04-02 18:41:33 +02:00
|
|
|
}
|
2018-03-28 11:15:16 +02:00
|
|
|
|
2019-04-02 18:41:33 +02:00
|
|
|
stages {
|
2019-06-12 18:14:39 -04:00
|
|
|
stage('Prep') {
|
|
|
|
steps { script {
|
2019-06-04 18:50:29 +02:00
|
|
|
nix.shell(
|
|
|
|
'bundle install --gemfile=fastlane/Gemfile',
|
2020-01-28 13:15:22 +01:00
|
|
|
attr: 'shells.fastlane',
|
2019-10-09 18:37:58 +03:00
|
|
|
)
|
2019-06-12 18:14:39 -04:00
|
|
|
} }
|
2018-11-13 19:35:17 +01:00
|
|
|
}
|
2020-05-05 13:32:09 +02:00
|
|
|
stage('Play Store Update'){
|
2019-06-12 18:14:39 -04:00
|
|
|
steps { script {
|
2019-04-02 18:41:33 +02:00
|
|
|
withCredentials([
|
2020-05-05 13:32:09 +02:00
|
|
|
string(
|
|
|
|
credentialsId: 'SUPPLY_JSON_KEY_DATA',
|
|
|
|
variable: 'GOOGLE_PLAY_JSON_KEY'
|
2019-04-02 18:41:33 +02:00
|
|
|
),
|
|
|
|
]) {
|
2019-06-12 18:14:39 -04:00
|
|
|
nix.shell(
|
2020-05-05 13:32:09 +02:00
|
|
|
'bundle exec --gemfile=fastlane/Gemfile fastlane android upload_metadata',
|
|
|
|
keepEnv: ['FASTLANE_DISABLE_COLORS', 'GOOGLE_PLAY_JSON_KEY'],
|
2019-11-29 11:20:08 +01:00
|
|
|
attr: 'shells.fastlane',
|
2020-05-05 13:32:09 +02:00
|
|
|
pure: false
|
2019-06-12 18:14:39 -04:00
|
|
|
)
|
2019-04-02 18:41:33 +02:00
|
|
|
}
|
2019-06-12 18:14:39 -04:00
|
|
|
} }
|
2018-05-21 16:47:30 +02:00
|
|
|
}
|
2018-11-13 19:35:17 +01:00
|
|
|
}
|
2018-03-28 11:15:16 +02:00
|
|
|
}
|