Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: mbed-os/Jenkinsfile
- Revision:
- 0:2f0e1e23c242
diff -r 000000000000 -r 2f0e1e23c242 mbed-os/Jenkinsfile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed-os/Jenkinsfile Fri Apr 13 08:53:46 2018 +0000
@@ -0,0 +1,31 @@
+
+// List of targets to compile
+def targets = [
+ //"LPC1768",
+ //"NUCLEO_F401RE",
+ //"NRF51822",
+ "K64F"
+ ]
+
+// Map toolchains to compiler labels on Jenkins
+def toolchains = [
+ ARM: "armcc",
+ //IAR: "iar_arm",
+ GCC_ARM: "arm-none-eabi-gcc"
+ ]
+
+// mbed.getCurrentBranch returns either local branch name or reference to pull request
+def currentBranch = mbed.getCurrentBranch()
+
+// Create a map of predefined build steps
+def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains)
+
+// Run build steps parallel, map as paramater
+mbed.compile(parallelSteps)
+
+def testApps = [
+ "mbed-os-cliapp"
+ ]
+
+// buildTestApps accepts array of test application names and a mbed-os branch or PR reference as parameters
+mbed.buildTestApps(testApps, "${currentBranch}")