summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-07-23 20:24:05 +0200
committerHolger Levsen <holger@layer-acht.org>2016-07-23 18:33:59 -0400
commit54c027a1d92fedc25d8f51a5c8571f39144144c6 (patch)
treee6c5f1defc68967201c068f51047e0791df76cd4
parentf827914ce7d26fb9df308b2049e5459081fef849 (diff)
downloadjenkins.debian.net-54c027a1d92fedc25d8f51a5c8571f39144144c6.tar.xz
lvc: need to set WORKSPACE on the node, otherwise it is set to ~jenkins
Signed-off-by: Holger Levsen <holger@layer-acht.org>
-rwxr-xr-xbin/jenkins_node_wrapper.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/jenkins_node_wrapper.sh b/bin/jenkins_node_wrapper.sh
index 480abe64..53c2a8d3 100755
--- a/bin/jenkins_node_wrapper.sh
+++ b/bin/jenkins_node_wrapper.sh
@@ -76,6 +76,7 @@ elif [[ "$*" =~ ^lvc_.* ]] ; then
export JOB_NAME=$1 ; shift
export EXECUTOR_NUMBER=$1 ; shift
export TRIGGERING_BRANCH=${1#*=} ; shift
+ export WORKSPACE=~jenkins/jobs/$JOB_NAME/workspace
COMMAND="/srv/jenkins/bin/lvc.sh $@"
exec $COMMAND; croak "Exec failed";
elif [ "$*" = "reproducible_nodes_info" ] ; then