File tree Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Expand file tree Collapse file tree 1 file changed +20
-8
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ def morpheusTargets = [
9
9
// Map morpheus toolchains to compiler labels on Jenkins
10
10
def toolchains = [
11
11
// ARM: "armcc",
12
+ // IAR: "iar_arm",
12
13
GCC_ARM : " arm-none-eabi-gcc"
13
14
]
14
15
@@ -27,17 +28,22 @@ for (int i = 0; i < morpheusTargets.size(); i++) {
27
28
}
28
29
}
29
30
30
- /* Jenkins does not allow stages inside parallel execution,
31
- * https://issues.jenkins-ci.org/browse/JENKINS-26107 will solve this by adding labeled blocks
32
- */
33
- stage " parallel build"
34
31
try {
32
+ /* Jenkins does not allow stages inside parallel execution,
33
+ * https://issues.jenkins-ci.org/browse/JENKINS-26107 will solve this by adding labeled blocks
34
+ */
35
+ stage " parallel build"
35
36
// Actually run the steps in parallel - parallel takes a map as an argument, hence the above.
36
37
parallel stepsForParallel
37
-
38
+
39
+ stage " build testapps"
40
+ parallel testapp : {
41
+ build ' ARMmbed/mbed-client-testapp/master'
42
+ }, cliapp : {
43
+ build ' ARMmbed/mbed-client-cliapp/master'
44
+ }, failFast : true
38
45
} catch (err) {
39
46
currentBuild. result = ' FAILURE'
40
-
41
47
}
42
48
43
49
// Create yotta build steps for parallel execution
47
53
deleteDir()
48
54
dir(" mbed-os" ) {
49
55
checkout scm
50
- sh " mbed deploy --protocol ssh"
51
- sh " mbed compile --tests -m ${ target} -t ${ toolchain} -c"
56
+ // shell script on Unix, batch on Windows
57
+ if (isUnix()) {
58
+ sh " mbed deploy --protocol ssh"
59
+ sh " mbed compile --tests -m ${ target} -t ${ toolchain} -c"
60
+ } else {
61
+ bat " mbed deploy --protocol ssh"
62
+ bat " mbed compile --tests -m ${ target} -t ${ toolchain} -c"
63
+ }
52
64
}
53
65
}
54
66
}
You can’t perform that action at this time.
0 commit comments