[PATCH] docker-playground[master]: jenkins-common: move workspace to /tmp/jenkins when build ou...

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

lynxis lazus gerrit-no-reply at lists.osmocom.org
Tue Apr 10 13:09:03 UTC 2018


Review at  https://gerrit.osmocom.org/7721

jenkins-common: move workspace to /tmp/jenkins when build outside jenkins

When users building the scripts, the WORKSPACE variable must be set. Increase the overview
of created folders and files by using a subdirectory in /tmp

Change-Id: I8a139ef2d23dd8115191e51e86ef0346cb97e4cf
---
M jenkins-common.sh
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/docker-playground refs/changes/21/7721/1

diff --git a/jenkins-common.sh b/jenkins-common.sh
index 4acc6af..8797790 100644
--- a/jenkins-common.sh
+++ b/jenkins-common.sh
@@ -21,7 +21,8 @@
 
 # non-jenkins execution: put logs in /tmp
 if [ "x$WORKSPACE" = "x" ]; then
-	WORKSPACE=/tmp
+	WORKSPACE=/tmp/jenkins
+	mkdir -p "$WORKSPACE"
 fi
 
 # non-jenkins execution: put logs in /tmp

-- 
To view, visit https://gerrit.osmocom.org/7721
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8a139ef2d23dd8115191e51e86ef0346cb97e4cf
Gerrit-PatchSet: 1
Gerrit-Project: docker-playground
Gerrit-Branch: master
Gerrit-Owner: lynxis lazus <lynxis at fe80.eu>



More information about the gerrit-log mailing list