FRDM K64F Metronome

Committer:
ram54288
Date:
Sun May 14 18:37:05 2017 +0000
Revision:
0:dbad57390bd1
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ram54288 0:dbad57390bd1 1
ram54288 0:dbad57390bd1 2 try {
ram54288 0:dbad57390bd1 3 // Reserve an executor from node with label arm-none-eabi-gcc
ram54288 0:dbad57390bd1 4 node ("arm-none-eabi-gcc") {
ram54288 0:dbad57390bd1 5 // Ensure a clean build by deleting any previous Jenkins workarea
ram54288 0:dbad57390bd1 6 deleteDir()
ram54288 0:dbad57390bd1 7 // Add timestamps to Jenkins console log
ram54288 0:dbad57390bd1 8 timestamps {
ram54288 0:dbad57390bd1 9 env.MBEDOS_ROOT = pwd()
ram54288 0:dbad57390bd1 10 // Define a Jenkins stage for logging purposes
ram54288 0:dbad57390bd1 11 stage ("prepare environment") {
ram54288 0:dbad57390bd1 12 // Create a directory and execute steps there
ram54288 0:dbad57390bd1 13 dir ("mbed-client-pal") {
ram54288 0:dbad57390bd1 14 // clone the sw under test, either branch or PR depending on trigger
ram54288 0:dbad57390bd1 15 checkout scm
ram54288 0:dbad57390bd1 16 }
ram54288 0:dbad57390bd1 17
ram54288 0:dbad57390bd1 18 dir ("mbed-os") {
ram54288 0:dbad57390bd1 19 git "git@github.com:ARMmbed/mbed-os"
ram54288 0:dbad57390bd1 20 execute ("git checkout tags/mbed-os-5.2")
ram54288 0:dbad57390bd1 21 }
ram54288 0:dbad57390bd1 22
ram54288 0:dbad57390bd1 23
ram54288 0:dbad57390bd1 24 // Add mbed components
ram54288 0:dbad57390bd1 25 execute ("mbed new .")
ram54288 0:dbad57390bd1 26
ram54288 0:dbad57390bd1 27 // Execute shell command, edit file with sed
ram54288 0:dbad57390bd1 28
ram54288 0:dbad57390bd1 29
ram54288 0:dbad57390bd1 30 writeFile file: 'mbed-os/features/frameworks/.mbedignore', text: '*'
ram54288 0:dbad57390bd1 31
ram54288 0:dbad57390bd1 32 }
ram54288 0:dbad57390bd1 33
ram54288 0:dbad57390bd1 34 stage ("build") {
ram54288 0:dbad57390bd1 35 dir ("mbed-client-pal/Test") {
ram54288 0:dbad57390bd1 36 execute ("make mbedOS_all")
ram54288 0:dbad57390bd1 37 }
ram54288 0:dbad57390bd1 38 }
ram54288 0:dbad57390bd1 39 }
ram54288 0:dbad57390bd1 40 }
ram54288 0:dbad57390bd1 41 } catch (error) {
ram54288 0:dbad57390bd1 42 currentBuild.result = 'FAILURE'
ram54288 0:dbad57390bd1 43
ram54288 0:dbad57390bd1 44
ram54288 0:dbad57390bd1 45 }