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.
pal/Jenkinsfile
- Committer:
- ram54288
- Date:
- 2017-05-14
- Revision:
- 0:a7a43371b306
File content as of revision 0:a7a43371b306:
try {
// Reserve an executor from node with label arm-none-eabi-gcc
node ("arm-none-eabi-gcc") {
// Ensure a clean build by deleting any previous Jenkins workarea
deleteDir()
// Add timestamps to Jenkins console log
timestamps {
env.MBEDOS_ROOT = pwd()
// Define a Jenkins stage for logging purposes
stage ("prepare environment") {
// Create a directory and execute steps there
dir ("mbed-client-pal") {
// clone the sw under test, either branch or PR depending on trigger
checkout scm
}
dir ("mbed-os") {
git "git@github.com:ARMmbed/mbed-os"
execute ("git checkout tags/mbed-os-5.2")
}
// Add mbed components
execute ("mbed new .")
// Execute shell command, edit file with sed
writeFile file: 'mbed-os/features/frameworks/.mbedignore', text: '*'
}
stage ("build") {
dir ("mbed-client-pal/Test") {
execute ("make mbedOS_all")
}
}
}
}
} catch (error) {
currentBuild.result = 'FAILURE'
}