1
1
// List of targets to compile
2
- def morpheusTargets = [
2
+ def targets = [
3
3
// "LPC1768",
4
4
// "NUCLEO_F401RE",
5
5
// "NRF51822",
6
6
" K64F"
7
7
]
8
8
9
- // Map morpheus toolchains to compiler labels on Jenkins
9
+ // Map toolchains to compiler labels on Jenkins
10
10
def toolchains = [
11
11
// ARM: "armcc",
12
12
// IAR: "iar_arm",
@@ -17,14 +17,14 @@ def toolchains = [
17
17
def stepsForParallel = [:]
18
18
19
19
// Jenkins pipeline does not support map.each, we need to use oldschool for loop
20
- for (int i = 0 ; i < morpheusTargets . size(); i++ ) {
20
+ for (int i = 0 ; i < targets . size(); i++ ) {
21
21
for (int j = 0 ; j < toolchains. size(); j++ ) {
22
- def target = morpheusTargets . get(i)
22
+ def target = targets . get(i)
23
23
def toolchain = toolchains. keySet(). asList(). get(j)
24
24
def compilerLabel = toolchains. get(toolchain)
25
25
26
26
def stepName = " ${ target} ${ toolchain} "
27
- stepsForParallel[stepName] = morpheusBuildStep (target, compilerLabel, toolchain)
27
+ stepsForParallel[stepName] = buildStep (target, compilerLabel, toolchain)
28
28
}
29
29
}
30
30
@@ -42,6 +42,8 @@ build job: 'ARMmbed/mbed-client-testapp/master', parameters: [[$class: 'StringPa
42
42
build job : ' ARMmbed/mbed-client-cliapp/master' , parameters : [[$class : ' StringParameterValue' , name : ' mbed_os_revision' , value : " ${ env.GIT_REVISION} " ]]
43
43
}, failFast : true
44
44
45
+ /* End of execution, internal functions below */
46
+
45
47
def execute (cmd ) {
46
48
if (isUnix()) {
47
49
sh " ${ cmd} "
@@ -50,8 +52,8 @@ def execute(cmd) {
50
52
}
51
53
}
52
54
53
- // Create morpheus build steps for parallel execution
54
- def morpheusBuildStep (target , compilerLabel , toolchain ) {
55
+ // Create build steps for parallel execution
56
+ def buildStep (target , compilerLabel , toolchain ) {
55
57
return {
56
58
node (" ${ compilerLabel} " ) {
57
59
deleteDir()
0 commit comments