Change in osmo-e1-hardware[master]: contrib/jenkins.sh: ugly work-around for PATH problems

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/.

laforge gerrit-no-reply at lists.osmocom.org
Thu Dec 17 16:46:42 UTC 2020


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-e1-hardware/+/21769 )

Change subject: contrib/jenkins.sh: ugly work-around for PATH problems
......................................................................

contrib/jenkins.sh: ugly work-around for PATH problems

For details see https://osmocom.org/issues/4911

Related: OS#4911
Change-Id: I04e9c29813f6695d0d53f7cdede34f83d24ea3fd
---
M contrib/jenkins.sh
1 file changed, 9 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved; Verified



diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index 1a0750f..b788540 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -5,6 +5,15 @@
 # * WITH_MANUALS: build manual PDFs if set to "1"
 # * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "1")
 
+# ugly, ugly hack to work around the fact that we cannot _extend_ the path when executing
+# a docker container.  We can either override it (and loose our /opt/... toolchain paths)
+# or we can not specify the /build_bin whcih means the osmo-build-dep.sh is not found
+# See https://osmocom.org/issues/4911
+if [ -d /build_bin ]; then
+	PATH=$PATH:/build_bin
+	export PATH
+fi
+
 if ! [ -x "$(command -v osmo-build-dep.sh)" ]; then
 	echo "Error: We need to have scripts/osmo-deps.sh from http://git.osmocom.org/osmo-ci/ in PATH !"
 	exit 2

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-e1-hardware/+/21769
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-e1-hardware
Gerrit-Branch: master
Gerrit-Change-Id: I04e9c29813f6695d0d53f7cdede34f83d24ea3fd
Gerrit-Change-Number: 21769
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201217/f63d4dfb/attachment.htm>


More information about the gerrit-log mailing list