diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2017-05-22 09:56:48 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2017-05-23 14:37:14 +0000 |
commit | 707305637d2e193dcd064a2a866b40f570f8e5e9 (patch) | |
tree | 6805db8de7abcd00634cd9980740ca9e79073ede | |
parent | b707e5049c25d6361f6c6ac426df28c28758e3bc (diff) |
tcwg-benchmark.sh: Use wget_wildcard_url
... to support tcwg-benchmark-release job.
Change-Id: Ife885d5d5b9ff6eb47135022905be17d51edfb65
-rwxr-xr-x | tcwg-benchmark.sh | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tcwg-benchmark.sh b/tcwg-benchmark.sh index 326b2ce1..4e132355 100755 --- a/tcwg-benchmark.sh +++ b/tcwg-benchmark.sh @@ -40,6 +40,8 @@ build_container_port= # wrong when preparing the test environment trap "cleanup_all_containers" EXIT +. jenkins-helpers.sh + case "$toolchain_url" in "ssh://"*) ccprefix="${toolchain_url##ssh://}" @@ -48,9 +50,9 @@ case "$toolchain_url" in exit 1 fi ;; - "http://"*|"https://"*) - wget --progress=dot:giga --no-check-certificate "${toolchain_url}" - tarball=$(basename "${toolchain_url}") + "http://"*".tar.xz"|"https://"*".tar.xz") + wget_wildcard_url "$toolchain_url" --no-check-certificate + tarball="$(ls $(basename "$toolchain_url"))" tar xf "${tarball}" toolchaindir=$(echo "${tarball}" | sed 's/.tar.xz//') ccpath=$(find "$WORKSPACE/$toolchaindir" -name "*-gcc") @@ -60,6 +62,10 @@ case "$toolchain_url" in sysroot="$(find "$WORKSPACE/$toolchaindir" -name "libc")" fi ;; + *) + echo "ERROR: Cannot handle toolchain_url: $toolchain_url" + exit 1 + ;; esac # Slaves for this job are virtual slaves on dev-01, |