A metronome using the FRDM K64F board

Committer:
ram54288
Date:
Sun May 14 18:40:18 2017 +0000
Revision:
0:a7a43371b306
Initial commit

Who changed what in which revision?

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