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.
mbed-os/Jenkinsfile@0:2f0e1e23c242, 2018-04-13 (annotated)
- Committer:
- glebiuskv
- Date:
- Fri Apr 13 08:53:46 2018 +0000
- Revision:
- 0:2f0e1e23c242
initial
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| glebiuskv | 0:2f0e1e23c242 | 1 | |
| glebiuskv | 0:2f0e1e23c242 | 2 | // List of targets to compile | 
| glebiuskv | 0:2f0e1e23c242 | 3 | def targets = [ | 
| glebiuskv | 0:2f0e1e23c242 | 4 | //"LPC1768", | 
| glebiuskv | 0:2f0e1e23c242 | 5 | //"NUCLEO_F401RE", | 
| glebiuskv | 0:2f0e1e23c242 | 6 | //"NRF51822", | 
| glebiuskv | 0:2f0e1e23c242 | 7 | "K64F" | 
| glebiuskv | 0:2f0e1e23c242 | 8 | ] | 
| glebiuskv | 0:2f0e1e23c242 | 9 | |
| glebiuskv | 0:2f0e1e23c242 | 10 | // Map toolchains to compiler labels on Jenkins | 
| glebiuskv | 0:2f0e1e23c242 | 11 | def toolchains = [ | 
| glebiuskv | 0:2f0e1e23c242 | 12 | ARM: "armcc", | 
| glebiuskv | 0:2f0e1e23c242 | 13 | //IAR: "iar_arm", | 
| glebiuskv | 0:2f0e1e23c242 | 14 | GCC_ARM: "arm-none-eabi-gcc" | 
| glebiuskv | 0:2f0e1e23c242 | 15 | ] | 
| glebiuskv | 0:2f0e1e23c242 | 16 | |
| glebiuskv | 0:2f0e1e23c242 | 17 | // mbed.getCurrentBranch returns either local branch name or reference to pull request | 
| glebiuskv | 0:2f0e1e23c242 | 18 | def currentBranch = mbed.getCurrentBranch() | 
| glebiuskv | 0:2f0e1e23c242 | 19 | |
| glebiuskv | 0:2f0e1e23c242 | 20 | // Create a map of predefined build steps | 
| glebiuskv | 0:2f0e1e23c242 | 21 | def parallelSteps = mbed.createParalleSteps("mbed-os", targets, toolchains) | 
| glebiuskv | 0:2f0e1e23c242 | 22 | |
| glebiuskv | 0:2f0e1e23c242 | 23 | // Run build steps parallel, map as paramater | 
| glebiuskv | 0:2f0e1e23c242 | 24 | mbed.compile(parallelSteps) | 
| glebiuskv | 0:2f0e1e23c242 | 25 | |
| glebiuskv | 0:2f0e1e23c242 | 26 | def testApps = [ | 
| glebiuskv | 0:2f0e1e23c242 | 27 | "mbed-os-cliapp" | 
| glebiuskv | 0:2f0e1e23c242 | 28 | ] | 
| glebiuskv | 0:2f0e1e23c242 | 29 | |
| glebiuskv | 0:2f0e1e23c242 | 30 | // buildTestApps accepts array of test application names and a mbed-os branch or PR reference as parameters | 
| glebiuskv | 0:2f0e1e23c242 | 31 | mbed.buildTestApps(testApps, "${currentBranch}") |