osmith has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/38226?usp=email )


Change subject: jobs/gerrit: use deps cache from docker image
......................................................................

jobs/gerrit: use deps cache from docker image

Instead of freshly cloning the dependencies each time, use the cache we
already have in the debian-bookworm-titan docker image. This way only
the dependency repositories that were changed in the patch submitted to
gerrit need to be updated.

Related: OS#6572
Change-Id: I895011edf49f612d0df7f4759dc374bab60c32a6
---
M jobs/gerrit-verifications.yml
1 file changed, 6 insertions(+), 0 deletions(-)



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

diff --git a/jobs/gerrit-verifications.yml b/jobs/gerrit-verifications.yml
index 58752cd..f98eac9 100644
--- a/jobs/gerrit-verifications.yml
+++ b/jobs/gerrit-verifications.yml
@@ -444,6 +444,12 @@
               {timeout_cmd} \
               sh -e -x -c '
                 useradd --uid=1000 build
+                chown -R build:build /osmo-ttcn3-hacks/deps
+                for i in /osmo-ttcn3-hacks/deps/*/; do
+                  if ! [ -e /build/deps/"$(basename "$i")" ]; then
+                    ln -s "$i" /build/deps/
+                  fi
+                done
                 su build -c "make -C /build compile"
                 '
           pipeline_binpkgs: ""

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

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I895011edf49f612d0df7f4759dc374bab60c32a6
Gerrit-Change-Number: 38226
Gerrit-PatchSet: 1
Gerrit-Owner: osmith <osm...@sysmocom.de>

Reply via email to