forked from osfree-project/osfree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
40 lines (39 loc) · 1.11 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
// labels for Jenkins node types we will build on
//def labels = ['linux-docker-i386', 'os2-vbox-i386', 'win32-vbox-i386']
//def builders = [:]
//
//for (x in labels) {
// // Need to bind the label variable before the closure - can't do 'for (label in labels)'
// def label = x
//
// // Create a map to pass in to the 'parallel' step so we can fire all the builds at once
// builders[label] = {
// node (label) {
// stage ('Pull submodules') {
// cmd 'git submodule update --init --recursive'
// cmd 'git submodule update --remote --recursive'
// }
//
// stage ('Build') {
// echo "Running build ${env.BUILD_ID} on ${env.JENKINS_URL}"
//
// if (label == 'linux-docker-i386')
// sh './_wcc.sh'
// else
// cmd '_wcc.cmd'
// }
//
// stage ('Done') {
// echo 'Done.'
// }
// }
// }
//}
//
//parallel builders
//
node {
stage "Build"
echo "Running build ${env.BUILD_ID} on ${env.JENKINS_URL}"
sh "./_wcc.sh"
}