Change in osmo-ci[master]: osmo-layer1-headers.sh: Check-out NuRAN branches without slashes

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sat Oct 27 11:34:37 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/11483 )

Change subject: osmo-layer1-headers.sh: Check-out NuRAN branches without slashes
......................................................................

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
---
M scripts/osmo-layer1-headers.sh
1 file changed, 8 insertions(+), 1 deletion(-)

Approvals:
  Harald Welte: Looks good to me, approved; Verified



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 @@
 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 @@
 
 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}"

-- 
To view, visit https://gerrit.osmocom.org/11483
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I1bbfc61f66c5fc490ceca96a8eb21210dd89b629
Gerrit-Change-Number: 11483
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181027/288d30a4/attachment.htm>


More information about the gerrit-log mailing list