diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-05-03 09:40:09 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2018-05-03 09:40:09 +0000 |
commit | c87300783aef540235ff4e305118735bbf518258 (patch) | |
tree | 0215467bf4758c3a04c6689efa8747334329b66b /tcwg-update-snapshots_ref.sh | |
parent | 3d40bc6a2c17b62b4f480934bf13259dda307813 (diff) |
tcwg-update-snapshots_ref: Move code from .yaml file.
The only change is the use of convert_args_to_variables to set
input variables.
Change-Id: Ibddc62952e379ca0d4305ccb66b256ef661134d1
Diffstat (limited to 'tcwg-update-snapshots_ref.sh')
-rwxr-xr-x | tcwg-update-snapshots_ref.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tcwg-update-snapshots_ref.sh b/tcwg-update-snapshots_ref.sh new file mode 100755 index 00000000..c18d8d20 --- /dev/null +++ b/tcwg-update-snapshots_ref.sh @@ -0,0 +1,21 @@ +#!/bin/bash + +set -ex + +. jenkins-helpers.sh +convert_args_to_variables "$@" + +case "$label" in + tcwg-x86_64-dev-01) + machines="ex40-01.tcwglab.linaro.org r1-a7.aus-colo" + nodes_list=($(print_nodes_in_labels tcwg-apm_64-build tcwg-tk1 tcwg-tx1 tcwg-x86_64-1-cam tcwg-x86_64-build tcwg-coordinator)) + for node in "${nodes_list[@]}"; do + machines="$machines $(print_host_for_node $node)" + done + ;; + *) echo "ERROR: Unknown host: $label"; exit 1 ;; +esac + +./tcwg-generate-source-cache.sh --dir-abe $HOME/snapshots-ref-new --dir-llvm $HOME/llvm-reference-new --generate-abe $generate_abe --generate-llvm $generate_llvm --generate-misc $generate_misc --update-abe-git $update_abe_git --update-llvm-git $update_llvm_git --verbose $verbose --abe-branch $abe_branch +./tcwg-rsync-dir.sh --dir $HOME/snapshots-ref --verbose $verbose -- $machines +./tcwg-rsync-dir.sh --dir $HOME/llvm-reference --verbose $verbose -- $machines |