-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathJenkinsfile
46 lines (46 loc) · 1.58 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
node('xcode10 && tabris2') {
stage('info') {
sh 'npm -version'
sh 'node -v'
sh 'tabris --version'
sh 'xcodebuild -version'
sh 'FASTLANE_DISABLE_COLORS=true LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 fastlane env'
sh 'uname -a'
sh 'ruby --version'
sh 'java -version'
sh '/usr/libexec/java_home -v 1.8'
sh '/usr/libexec/java_home -v 9 || true'
}
stage('checkout') {
// if(isScmConfigured()) {
// checkout scm
// } else {
// git '[email protected]:eclipsesource/tabris-js-hello-world.git'
// }
checkout scm
}
stage('npm') {
sh 'npm install'
}
stage('fastlane') {
withCredentials([
string(credentialsId: 'FASTLANE_PASSWD', variable: 'FASTLANE_PASSWORD'),
string(credentialsId: 'MATCH_PASSWD', variable: 'MATCH_PASSWORD'),
string(credentialsId: 'ANKA_VM_PASSWD', variable: 'ANKA_VM_PASSWORD')
]) {
sh 'echo ${FASTLANE_PASSWORD}'
sh 'echo ${MATCH_PASSWORD}'
sh 'echo ${ANKA_VM_PASSWORD}'
sh 'security unlock-keychain -p ${ANKA_VM_PASSWORD} login.keychain'
sh 'LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 FASTLANE_DISABLE_COLORS=true fastlane ios match'
sh 'security set-key-partition-list -S apple-tool:,apple: -s -k ${ANKA_VM_PASSWORD} login.keychain'
}
}
stage('tabris build') {
// sh 'echo ${TABRIS_BUILD_KEY}'
sh 'tabris build ios --debug --device'
}
stage('archive ipa') {
archive '**/*.ipa'
}
}