-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathJenkinsfile
66 lines (65 loc) · 2.09 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
pipeline {
agent none
options {
timeout(time: 60, unit: 'MINUTES')
}
stages {
stage("Build Mobile") {
parallel {
stage("Android") {
agent { label 'mobile-lite-android' }
environment {
BRANCH = "${BRANCH_NAME}"
}
steps {
sh 'jenkins/jenkins_android.sh $HOME/jenkins/tools/android-sdk'
}
}
stage("iOS") {
agent { label 'sonoma' }
environment {
BRANCH = "${BRANCH_NAME}"
KEYCHAIN_PWD = credentials("keychain-password")
}
steps {
sh 'jenkins/jenkins_ios.sh'
}
}
}
}
stage("Build and Test Desktop") {
parallel {
stage("Windows") {
agent { label 'couchbase-lite-net-validation' }
environment {
BRANCH = "${BRANCH_NAME}"
}
steps {
powershell 'jenkins\\jenkins_win.ps1'
}
}
stage("macOS") {
agent { label 'sonoma' }
environment {
BRANCH = "${BRANCH_NAME}"
GH_PAT = credentials("cbl-bot-github-pat")
}
steps {
sh 'build_cmake/scripts/cover_macos.sh --export-results --push'
}
}
stage("Linux") {
agent { label 's61113u16 (litecore)' }
environment {
BRANCH = "${BRANCH_NAME}"
CC = "gcc-10"
CXX = "g++-10"
}
steps {
sh 'jenkins/jenkins_unix.sh'
}
}
}
}
}
}