osmith has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ci/+/29191 )
Change subject: scripts/osmo-deps.sh: use osmo_git_clone_url
......................................................................
scripts/osmo-deps.sh: use osmo_git_clone_url
Instead of hardcoding
https://git.osmocom.org for all clones, use
the osmo_git_clone_url function. This clones via https from gerrit where
possible, it should fix the many errors we are currently seeing from
the master-openbsc job:
+ osmo-deps.sh libosmo-sccp
+ project=libosmo-sccp
+ branch=master
+ git branch -a
+ grep -c remotes/origin/master$
+ [ x1 != x0 ]
+ branch=origin/master
+ test -d libosmo-sccp
+ git clone
https://git.osmocom.org/libosmo-sccp libosmo-sccp
Cloning into 'libosmo-sccp'...
error: HTTP/2 stream 0 was closed cleanly, but before getting all response header
fields, treated as error (curl_result = 92, http_code = 0, sha1 =
d23e38020fdbb685570145acd3a35e22a5a91344)
error: HTTP/2 stream 0 was closed cleanly, but before getting all response header
fields, treated as error (curl_result = 92, http_code = 0, sha1 =
68b450098714e3015a65b6628a7e61ac09dd4d47)
error: Unable to find 68b450098714e3015a65b6628a7e61ac09dd4d47 under
https://git.osmocom.org/libosmo-sccp
Cannot obtain needed tree 68b450098714e3015a65b6628a7e61ac09dd4d47
while processing commit d23e38020fdbb685570145acd3a35e22a5a91344.
error: fetch failed.
Related:
https://lists.osmocom.org/hyperkitty/list/openbsc@lists.osmocom.org/thread/…
Change-Id: I700d608ff74eca3981ed41f04ee9ced9629436aa
---
M scripts/osmo-deps.sh
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
Jenkins Builder: Verified
laforge: Looks good to me, but someone else must approve
fixeria: Looks good to me, approved
diff --git a/scripts/osmo-deps.sh b/scripts/osmo-deps.sh
index af3d555..59ecce0 100755
--- a/scripts/osmo-deps.sh
+++ b/scripts/osmo-deps.sh
@@ -1,4 +1,5 @@
#!/bin/sh
+. "$(dirname "$0")/common.sh"
set -ex
project="$1"
branch="${2:-master}"
@@ -8,9 +9,8 @@
fi
-if ! test -d "$project";
-then
- git clone "https://git.osmocom.org/$project" "$project"
+if ! test -d "$project"; then
+ git clone "$(osmo_git_clone_url "$project")" "$project"
fi
cd "$project"
--
To view, visit
https://gerrit.osmocom.org/c/osmo-ci/+/29191
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I700d608ff74eca3981ed41f04ee9ced9629436aa
Gerrit-Change-Number: 29191
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osmith(a)sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <dwillmann(a)sysmocom.de>
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: neels <nhofmeyr(a)sysmocom.de>
Gerrit-Reviewer: osmith <osmith(a)sysmocom.de>
Gerrit-MessageType: merged