summaryrefslogtreecommitdiff
path: root/tcwg_kernel-build.sh
diff options
context:
space:
mode:
authorMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-20 17:56:41 +0000
committerMaxim Kuvyrkov <maxim.kuvyrkov@linaro.org>2021-07-21 14:14:02 +0000
commit3922f589ab98b50295674d01287ed7fc693bbb47 (patch)
tree9e38e71ae0ec10eee1acd3441f42ff24b66f6bfe /tcwg_kernel-build.sh
parent8b5d081995cc6e048c5794ccd0ba2bf3c42d2e1b (diff)
downloadjenkins-scripts-3922f589ab98b50295674d01287ed7fc693bbb47.tar.gz
round-robin scripts: Merge <foo>_url and <foo>_branch into <foo>_git
Merge git "_url" and "_branch" specification into a single "_git" argument that's constructed from "URL#BRANCH". This argument also has a special value "baseline", which before was a special value of "branch". This rework makes handling of git references simpler and cleaner, especially on the jenkins side. Change-Id: I1c1c07629728c693b8350dfa1b61fe767d5b0a0b
Diffstat (limited to 'tcwg_kernel-build.sh')
-rwxr-xr-xtcwg_kernel-build.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/tcwg_kernel-build.sh b/tcwg_kernel-build.sh
index 2d5fc933..bb923767 100755
--- a/tcwg_kernel-build.sh
+++ b/tcwg_kernel-build.sh
@@ -51,10 +51,7 @@ esac
# Use baseline branches by default.
for c in ${rr[components]}; do
- rr[${c}_branch]=${rr[${c}_branch]-baseline}
- if [ x"${rr[${c}_branch]}" != x"baseline" ]; then
- obligatory_variables rr[${c}_url]
- fi
+ rr[${c}_git]=${rr[${c}_git]-baseline}
done
start_at="${start_at-default}"