Skip to content

Commit 3a05cdd

Browse files
authored
Merge pull request #2680 from ARMmbed/jenkinsfile
Update Jenkinsfile
2 parents 5d1d8b4 + 9061a09 commit 3a05cdd

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

Jenkinsfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
// List of targets to compile
23
def targets = [
34
//"LPC1768",
@@ -8,19 +9,21 @@ def targets = [
89

910
// Map toolchains to compiler labels on Jenkins
1011
def toolchains = [
11-
//ARM: "armcc",
12+
ARM: "armcc",
1213
//IAR: "iar_arm",
1314
GCC_ARM: "arm-none-eabi-gcc"
1415
]
1516

1617
// Create a map of predefined build steps
17-
stage "generate build steps for parallel execution"
1818
def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains)
1919

2020
// Run build steps parallel, map as paramater
21-
stage "build all targets"
2221
mbed.compile(parallelSteps)
2322

24-
// Run testapps, mbed-os commit hash or master as parameter
25-
stage "run mbed-os testapps"
26-
mbed.runTestApps("${env.GIT_REVISION}")
23+
def testApps = [
24+
"mbed-os-cliapp",
25+
"mbed-client-testapp"
26+
]
27+
28+
// buildTestApps accepts array of test application names and a mbed-os commit hash as parameters
29+
mbed.buildTestApps(testApps, "${env.GIT_REVISION}")

0 commit comments

Comments
 (0)