Skip to content

Commit 5011ed9

Browse files
committed
Modified Jenkinsfile into one-liner format.
1 parent 2a824a1 commit 5011ed9

File tree

1 file changed

+2
-31
lines changed

1 file changed

+2
-31
lines changed

Jenkinsfile

+2-31
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,2 @@
1-
2-
// List of targets to compile
3-
def targets = [
4-
//"LPC1768",
5-
//"NUCLEO_F401RE",
6-
//"NRF51822",
7-
"K64F"
8-
]
9-
10-
// Map toolchains to compiler labels on Jenkins
11-
def toolchains = [
12-
ARM: "armcc",
13-
//IAR: "iar_arm",
14-
GCC_ARM: "arm-none-eabi-gcc"
15-
]
16-
17-
// mbed.getCurrentBranch returns either local branch name or reference to pull request
18-
def currentBranch = mbed.getCurrentBranch()
19-
20-
// Create a map of predefined build steps
21-
def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains)
22-
23-
// Run build steps parallel, map as paramater
24-
mbed.compile(parallelSteps)
25-
26-
def testApps = [
27-
"mbed-os-cliapp"
28-
]
29-
30-
// buildTestApps accepts array of test application names and a mbed-os branch or PR reference as parameters
31-
mbed.buildTestApps(testApps, "${currentBranch}")
1+
// Run test job in Jenkins
2+
mbed.run_job()

0 commit comments

Comments
 (0)