osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/28536 )


Change subject: scripts/OBS latest: fix checkout with dir in path
......................................................................

scripts/OBS latest: fix checkout with dir in path

osmo-python-tests was added to latest just like it was in nightly, by
adding the following two lines to build_osmocom():

  checkout python/osmo-python-tests
  ...
  build osmo-python-tests

But the build fails, because the "checkout" function clones into a
"python/osmo-python-tests" directory in latest, and not into a
"osmo-python-test" directory like in nightly. Make it behave the same by
adjusting the "checkout" function in nightly.

(This code has historically grown and should be refactored imho, but
let's fix this bug first.)

Fix for:
  ====> Building osmo-python-tests
  + cd 
/home/osmocom-build/jenkins/workspace/Osmocom_OBS_latest_obs.osmocom.org/osmo-python-tests
  ./scripts/osmocom-latest-packages.sh: 99: cd: can't cd to 
.../osmo-python-tests

Change-Id: I97074ee953cadac476fe2e4b686689c26bac1ea1
---
M scripts/osmocom-latest-packages.sh
1 file changed, 3 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/36/28536/1

diff --git a/scripts/osmocom-latest-packages.sh 
b/scripts/osmocom-latest-packages.sh
index 3efc101..9055f5c 100755
--- a/scripts/osmocom-latest-packages.sh
+++ b/scripts/osmocom-latest-packages.sh
@@ -51,7 +51,8 @@
 }

 checkout() {
-  project=$1
+  path=$1
+  project="$(basename $path)"
   url=$2
   gitbpargs=""

@@ -60,7 +61,7 @@
   fi

   if [ -z "$url" ]; then
-    url="$(osmo_git_clone_url "$project")"
+    url="$(osmo_git_clone_url "$path")"
   fi

   echo

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

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I97074ee953cadac476fe2e4b686689c26bac1ea1
Gerrit-Change-Number: 28536
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <[email protected]>
Gerrit-MessageType: newchange

Reply via email to