Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

Commit bb57615

Browse files
author
Kimmo Lepikko
committed
File paths shortened due to Windows 260 char limit
1 parent 7131f36 commit bb57615

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Jenkinsfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ def toolchains = [
1313
]
1414

1515
def configurations = [
16-
"default": ["ETHERNET"],
17-
"thread": ["ATMEL", "MCR20"],
18-
"6lowpan": ["ATMEL", "MCR20"]
16+
"def": ["ETH"],
17+
"thd": ["ATMEL", "MCR20"],
18+
"6lp": ["ATMEL", "MCR20"]
1919
]
2020

2121
def connectiontypes = [
22-
"ETHERNET",
22+
"ETH",
2323
"ATMEL",
2424
"MCR20"
2525
]
@@ -60,14 +60,14 @@ def buildStep(target, compilerLabel, toolchain, configName, connectiontype) {
6060
dir("mbed-os-example-client") {
6161
checkout scm
6262

63-
if ("${configName}" == "thread") {
63+
if ("${configName}" == "thd") {
6464
// Change device type to Thread router
6565
execute("sed -i 's/\"NANOSTACK\", \"LOWPAN_ROUTER\", \"COMMON_PAL\"/\"NANOSTACK\", \"THREAD_ROUTER\", \"COMMON_PAL\"/' mbed_app.json")
6666
// Change connection type to thread
6767
execute ("sed -i 's/\"value\": \"ETHERNET\"/\"value\": \"MESH_THREAD\"/' mbed_app.json")
6868
}
6969

70-
if ("${configName}" == "6lowpan") {
70+
if ("${configName}" == "6lp") {
7171
// Change connection type to 6LoWPAN
7272
execute ("sed -i 's/\"value\": \"ETHERNET\"/\"value\": \"MESH_LOWPAN_ND\"/' mbed_app.json")
7373

@@ -89,7 +89,7 @@ def buildStep(target, compilerLabel, toolchain, configName, connectiontype) {
8989
execute ("git fetch origin latest")
9090
execute ("git checkout FETCH_HEAD")
9191
}
92-
execute ("mbed compile --build out/${target}_${compilerLabel}_${configName}_${connectiontype}/ -m ${target} -t ${toolchain} -c")
92+
execute ("mbed compile --build out/${target}_${toolchain}_${configName}_${connectiontype}/ -m ${target} -t ${toolchain} -c")
9393
}
9494
archive '**/mbed-os-example-client.bin'
9595
}

0 commit comments

Comments
 (0)