[Qa-jenkins-scm] [jenkins.debian.net] 02/03: fixup 86e1763: do artifact retrieval in the master wrapper
Holger Levsen
holger at layer-acht.org
Tue Jul 19 21:26:57 UTC 2016
This is an automated email from the git hooks/post-receive script.
holger pushed a commit to branch master
in repository jenkins.debian.net.
commit 0ebc9c045e2f2b545862c0ff0f148ad5e578c266
Author: Holger Levsen <holger at layer-acht.org>
Date: Tue Jul 19 23:22:15 2016 +0200
fixup 86e1763: do artifact retrieval in the master wrapper
(we use 'set -u' here so variables must be defined, plus a typo fixed
and some comments added…)
---
bin/jenkins_master_wrapper.sh | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/bin/jenkins_master_wrapper.sh b/bin/jenkins_master_wrapper.sh
index 7b5c1ff..d275361 100755
--- a/bin/jenkins_master_wrapper.sh
+++ b/bin/jenkins_master_wrapper.sh
@@ -21,6 +21,10 @@ fi
PORT=0
get_node_ssh_port $NODE_NAME
+# don't try to fetch artifacts by default
+RETRIEVE_ARTIFACTS=no
+
+# add some more params if needed,
# by default we just use the job name as param
case $JOB_NAME in
rebootstrap_*) PARAMS="$JOB_NAME $@"
@@ -60,9 +64,9 @@ ssh -o "BatchMode = yes" -p $PORT $NODE_NAME "$PARAMS" || {
}
# grab artifacts and tidy up at the other end
-if [ "$RETRIEVE_ARTIFACTS" ] ; then
+if [ "$RETRIEVE_ARTIFACTS" = "yes" ] ; then
RESULTS="$WORKSPACE/results"
- NODE_RESULTS="/var/libjenkins/jobs/$JOB_NAME/workspace/results"
+ NODE_RESULTS="/var/lib/jenkins/jobs/$JOB_NAME/workspace/results"
echo "$(date -u) - retrieving artifacts."
set -x
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git
More information about the Qa-jenkins-scm
mailing list