forked from Catrobat/Catty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile.release
49 lines (45 loc) · 1.21 KB
/
Jenkinsfile.release
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
#!/usr/bin/env groovy
pipeline {
agent {
label 'MAC'
}
parameters {
gitParameter defaultValue: 'origin/master', name: 'gitBranch', type: 'BRANCH', description: 'Select the branch you want to build e.g. origin/master.'
password name: 'CI_PASSWORD', defaultValue: '', description: ''
password name: 'FASTLANE_SESSION', defaultValue: '', description: ''
password name: 'FIREBASE_API_KEY', defaultValue: '', description: ''
password name: 'FIREBASE_GOOGLE_APP_ID', defaultValue: '', description: ''
}
options {
timeout(time: 2, unit: 'HOURS')
timestamps()
buildDiscarder(logRotator(numToKeepStr: '30', artifactNumToKeepStr: '30'))
}
stages {
stage('Unlock keychain') {
steps {
withCredentials([usernamePassword(credentialsId: 'eb111b76-63f8-4546-bc26-5fcb94721e1a', passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME')]) {
script {
unlockMACKeychain "${PASSWORD}"
}
}
}
}
stage('Carthage') {
steps {
sh 'make init'
}
}
stage('Release') {
steps {
sh 'cd src && fastlane release'
}
}
}
post {
always {
// clean workspace
deleteDir()
}
}
}