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/.
osmith gerrit-no-reply at lists.osmocom.orgosmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ci/+/16870 ) Change subject: docker_images_require: add symlink code path ...................................................................... docker_images_require: add symlink code path Make development easier by skipping fetch, checkout and reset --hard if _docker_playground is a symlink. Change-Id: If6209ff71488d39e590f5f8506b9d73ad0314846 --- M scripts/common.sh 1 file changed, 16 insertions(+), 10 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/70/16870/1 diff --git a/scripts/common.sh b/scripts/common.sh index 6d28cfc..340bac8 100644 --- a/scripts/common.sh +++ b/scripts/common.sh @@ -117,18 +117,24 @@ docker_images_require() { local oldpwd="$PWD" - # Get docker-plaground.git - if [ -d "_docker_playground" ]; then - git -C _docker_playground fetch + if [ -L "_docker_playground" ]; then + echo "NOTE: _docker_playground is a symlink, skipping fetch, checkout, reset" + cd "_docker_playground/$1" else - git clone https://git.osmocom.org/docker-playground/ _docker_playground - fi - cd _docker_playground - git checkout "$OSMO_BRANCH_DOCKER_PLAYGROUND" - git reset --hard "origin/$OSMO_BRANCH_DOCKER_PLAYGROUND" + # Get docker-plaground.git + if [ -d "_docker_playground" ]; then + git -C _docker_playground fetch + else + git clone https://git.osmocom.org/docker-playground/ _docker_playground + fi - # jenkins-common.sh expects to run from a subdir in docker-playground.git - cd "$1" + cd _docker_playground + git checkout "$OSMO_BRANCH_DOCKER_PLAYGROUND" + git reset --hard "origin/$OSMO_BRANCH_DOCKER_PLAYGROUND" + + # jenkins-common.sh expects to run from a subdir in docker-playground.git + cd "$1" + fi # Subshell: run docker_images_require from jenkins-common.sh, pass all arguments (. ../jenkins-common.sh; docker_images_require "$@") -- To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/16870 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: If6209ff71488d39e590f5f8506b9d73ad0314846 Gerrit-Change-Number: 16870 Gerrit-PatchSet: 1 Gerrit-Owner: osmith <osmith at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200114/f7637460/attachment.htm>