Skip to content

Commit cc3a382

Browse files
authored
Merge pull request #2384 from ARMmbed/jenkinsfile
Create Jenkinsfile
2 parents 9111aa4 + 9a5c152 commit cc3a382

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

Jenkinsfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
// List of targets to compile
2+
def targets = [
3+
//"LPC1768",
4+
//"NUCLEO_F401RE",
5+
//"NRF51822",
6+
"K64F"
7+
]
8+
9+
// Map toolchains to compiler labels on Jenkins
10+
def toolchains = [
11+
//ARM: "armcc",
12+
//IAR: "iar_arm",
13+
GCC_ARM: "arm-none-eabi-gcc"
14+
]
15+
16+
// Create a map of predefined build steps
17+
stage "generate build steps for parallel execution"
18+
def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains)
19+
20+
// Run build steps parallel, map as paramater
21+
stage "build all targets"
22+
mbed.compile(parallelSteps)
23+
24+
// Run testapps, mbed-os commit hash or master as parameter
25+
stage "run mbed-os testapps"
26+
mbed.runTestApps("${env.GIT_REVISION}")

0 commit comments

Comments
 (0)