forked from ARMmbed/pal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
45 lines (34 loc) · 1.1 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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 "[email protected]: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'
}