-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathJenkinsfile
31 lines (29 loc) · 1.22 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
import groovy.json.JsonOutput
timestamps {
node('regular-memory-node') {
stage('checkout') {
scmInfo = checkout scm
println("${scmInfo}")
env.GIT_BRANCH = scmInfo.GIT_BRANCH
env.GIT_COMMIT = scmInfo.GIT_COMMIT
}
params = [
string(name: 'GIT_COMMIT', value: scmInfo.GIT_COMMIT),
string(name: 'GIT_BRANCH', value: scmInfo.GIT_BRANCH),
string(name: 'parent_job', value: env.JOB_NAME),
string(name: 'parent_build_number', value: env.BUILD_NUMBER)
]
stage('Build and Test') {
def jobs = [
'Linux' : { build job: 'LibSfClient-Linux-Release', parameters: params },
'Linux-aarch64' : { build job: 'LibSfClient-Linux-aarch64-Release', parameters: params },
'Win32-VS14' : { build job: 'LibSfClient-Win32-VS14-Release', parameters: params },
'Win32-VS17' : { build job: 'LibSfClient-Win32-VS17-Release', parameters: params },
'Win64-VS14' : { build job: 'LibSfClient-Win64-VS14-Release', parameters: params },
'Win64-VS17' : { build job: 'LibSfClient-Win64-VS17-Release', parameters: params },
'Macaarch64' : { build job: 'LibSfClient-Macaarch64-Universal-Release', parameters: params }
]
parallel jobs
}
}
}