This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Jenkinsfile
76 lines (68 loc) · 1.61 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
pipeline {
agent {
label 'macos'
}
options {
timeout(time: 20, unit: 'MINUTES')
}
environment {
GEM_HOME=".gem"
LC_ALL="en_US.UTF-8"
LANG="en_US.UTF-8"
}
stages {
stage('Dev PR') {
when {
changeRequest target: 'develop'
expression {
env.ENVIRONMENT == 'dev'
}
}
stages {
stage('bundle install') {
steps {
script {
sh 'gem install bundler:2.2.28 && bundle install'
}
}
}
stage('clean') {
steps {
script {
sh 'bundle exec fastlane clean'
}
}
}
stage('verification') {
parallel {
stage('test') {
steps {
withCredentials([string(credentialsId: 'iosBuildProdSignature', variable: 'APPTENTIVE_PROD_SIGNATURE')]) {
withCredentials([string(credentialsId: 'iosBuildProdKey', variable: 'APPTENTIVE_PROD_KEY')]) {
script {
sh 'bundle exec fastlane test && bundle exec fastlane coverage'
}
}
}
}
}
stage('lint') {
steps {
script {
sh 'bundle exec fastlane lint'
}
}
}
}
}
stage('framework') {
steps {
script {
sh 'bundle exec fastlane clean && bundle exec fastlane framework'
}
}
}
}
}
}
}