Skip to content

Commit 82be071

Browse files
committed
jenkins: Build and store artifacts from applications/
Use sanitycheck to build applications as well as samples, and store the lot. Signed-off-by: Carles Cufi <[email protected]>
1 parent 2d8bf6b commit 82be071

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Jenkinsfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ pipeline {
4343
COMPLIANCE_REPORT_ARGS = "-p $CHANGE_ID -S $GIT_COMMIT -g"
4444

4545
// Build all custom samples that match the ci_build tag
46-
SANITYCHECK_OPTIONS = "--board-root $WORKSPACE/nrf/boards --testcase-root $WORKSPACE/nrf/samples --build-only --disable-unrecognized-section-test -t ci_build --inline-logs"
46+
SANITYCHECK_OPTIONS = "--board-root $WORKSPACE/nrf/boards --testcase-root $WORKSPACE/nrf/samples --testcase-root $WORKSPACE/nrf/applications --build-only --disable-unrecognized-section-test -t ci_build --inline-logs"
4747
ARCH = "-a arm"
4848
LC_ALL = "C.UTF-8"
4949

@@ -100,12 +100,19 @@ pipeline {
100100
file_path = "zephyr/sanity-out/nrf9160_pca10090/nrf9160/${samples[i]}/test_build/zephyr/zephyr.hex"
101101
check_and_store_sample("$file_path", "${samples[i]}_nrf9160_pca10090.hex")
102102
}
103-
ns_samples = ['asset_tracker', 'lte_ble_gateway', 'at_client']
103+
ns_samples = ['lte_ble_gateway', 'at_client']
104104
for(int i=0; i<ns_samples.size(); i++)
105105
{
106106
file_path = "zephyr/sanity-out/nrf9160_pca10090ns/nrf9160/${ns_samples[i]}/test_build/zephyr/zephyr.hex"
107107
check_and_store_sample("$file_path", "${ns_samples[i]}_nrf9160_pca10090ns.hex")
108108
}
109+
ns_apps = ['asset_tracker']
110+
for(int i=0; i<ns_apps.size(); i++)
111+
{
112+
file_path = "zephyr/sanity-out/nrf9160_pca10090ns/${ns_apps[i]}/test_build/zephyr/zephyr.hex"
113+
check_and_store_sample("$file_path", "${ns_apps[i]}_nrf9160_pca10090ns.hex")
114+
}
115+
109116
}
110117
archiveArtifacts allowEmptyArchive: true, artifacts: 'artifacts/*.hex'
111118
}

0 commit comments

Comments
 (0)