diff options
author | Harald Welte <laforge@gnumonks.org> | 2018-10-27 13:31:48 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2018-10-27 13:32:58 +0200 |
commit | 499aea7836b8a98cc9ad0e4f8711936e62b5aa31 (patch) | |
tree | 1f43a563089a2b3786a1d8e4d67910e6844fa9eb /scripts | |
parent | c466dcfde57d6991909538e8a57650798408a9b0 (diff) |
osmo-layer1-headers.sh: Check-out NuRAN branches without slashes
this is an ugly workaround for Jenkins not being able to deal with slash
('/') in label names that comprise the axis of a matrix buildjob, while
nuran not using tags but only branch names in their firmware
repositories :(
Change-Id: I1bbfc61f66c5fc490ceca96a8eb21210dd89b629
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/osmo-layer1-headers.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/scripts/osmo-layer1-headers.sh b/scripts/osmo-layer1-headers.sh index 0adf528..59cad87 100755 --- a/scripts/osmo-layer1-headers.sh +++ b/scripts/osmo-layer1-headers.sh @@ -12,18 +12,22 @@ set -e -x case "$1" in sysmo) uri="git://git.sysmocom.de/sysmo-bts/layer1-api" + version_prefix="" version="origin/master" ;; oct) uri="git://git.osmocom.org/octphy-2g-headers" + version_prefix="" version="origin/master" ;; lc15) uri="https://gitlab.com/nrw_litecell15/litecell15-fw" + version_prefix="origin/nrw/" version="origin/nrw/litecell15" ;; oc2g) uri="https://gitlab.com/nrw_oc2g/oc2g-fw" + version_prefix="origin/nrw/" version="origin/nrw/oc2g" ;; *) @@ -48,4 +52,7 @@ fi cd layer1-headers git fetch origin -git checkout -f "$version" +# $version_prefix is an ugly workaround for jenkins not being able to deal with slash ('/') +# in label names that comprise the axis of a matrxi buildjob, while nuran not using tags but +# only branch names in their firmware repositories :( +git checkout -f "$version" || git checkout -f "${version_prefix}${version}" |