Skip to content

Commit

Permalink
jenkins: Build and store artifacts from applications/
Browse files Browse the repository at this point in the history
Use sanitycheck to build applications as well as samples, and store the
lot.

Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
  • Loading branch information
carlescufi committed Feb 14, 2019
1 parent 2d8bf6b commit 82be071
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Jenkinsfile
Expand Up @@ -43,7 +43,7 @@ pipeline {
COMPLIANCE_REPORT_ARGS = "-p $CHANGE_ID -S $GIT_COMMIT -g"

// Build all custom samples that match the ci_build tag
SANITYCHECK_OPTIONS = "--board-root $WORKSPACE/nrf/boards --testcase-root $WORKSPACE/nrf/samples --build-only --disable-unrecognized-section-test -t ci_build --inline-logs"
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"
ARCH = "-a arm"
LC_ALL = "C.UTF-8"

Expand Down Expand Up @@ -100,12 +100,19 @@ pipeline {
file_path = "zephyr/sanity-out/nrf9160_pca10090/nrf9160/${samples[i]}/test_build/zephyr/zephyr.hex"
check_and_store_sample("$file_path", "${samples[i]}_nrf9160_pca10090.hex")
}
ns_samples = ['asset_tracker', 'lte_ble_gateway', 'at_client']
ns_samples = ['lte_ble_gateway', 'at_client']
for(int i=0; i<ns_samples.size(); i++)
{
file_path = "zephyr/sanity-out/nrf9160_pca10090ns/nrf9160/${ns_samples[i]}/test_build/zephyr/zephyr.hex"
check_and_store_sample("$file_path", "${ns_samples[i]}_nrf9160_pca10090ns.hex")
}
ns_apps = ['asset_tracker']
for(int i=0; i<ns_apps.size(); i++)
{
file_path = "zephyr/sanity-out/nrf9160_pca10090ns/${ns_apps[i]}/test_build/zephyr/zephyr.hex"
check_and_store_sample("$file_path", "${ns_apps[i]}_nrf9160_pca10090ns.hex")
}

}
archiveArtifacts allowEmptyArchive: true, artifacts: 'artifacts/*.hex'
}
Expand Down

0 comments on commit 82be071

Please sign in to comment.