diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2018-05-25 13:22:35 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2018-06-07 06:58:34 +0000 |
commit | 691e231ab2dc1f2c0a02a66bf1569857ed2d5433 (patch) | |
tree | def99cfcc52c1bc2d977c8040ad56f0158c26782 /tcwg-buildfarm.sh | |
parent | 6140c2fd1711d12ed2b55addc053c9098b4aa426 (diff) |
tcwg-buildfarm.sh: Add dryrun flag
If set, perform the normal setup, but do not actually run jenkins.sh
and only print the corresponding command-line. If set, no artifacts
are generated.
Change-Id: I5e5f94e1f478e5ee797ba29927655102c8591469
Diffstat (limited to 'tcwg-buildfarm.sh')
-rwxr-xr-x | tcwg-buildfarm.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tcwg-buildfarm.sh b/tcwg-buildfarm.sh index 0d64da2b..e3d7e676 100755 --- a/tcwg-buildfarm.sh +++ b/tcwg-buildfarm.sh @@ -17,7 +17,7 @@ else fi # Start build container -bash -x ./jenkins-scripts/start-container-docker.sh --label $label --node $NODE_NAME --distro ${build_container_tag} --prefix build_ > build-container.sh +bash -x ./jenkins-scripts/start-container-docker.sh --label $label --node $NODE_NAME --distro ${build_container_tag} --prefix build_ --dryrun $dryrun > build-container.sh # Define build_CONTAINER_RSH and build_container_cleanup . ./build-container.sh @@ -136,6 +136,10 @@ if [ $result -ne 0 ]; then trap "stop_all_containers" EXIT fi +if $dryrun; then + exit 0 +fi + # If we actually built a toolchain, save its manifest. # If the build was a no-op (results already present on log_server), # copy the existing ones. |