[Qa-jenkins-scm] [jenkins.debian.net] 05/05: lvc: only check snapshots against files that exist on builder

Holger Levsen holger at layer-acht.org
Sun Jun 5 09:13:58 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 c606484102b4ea7b0dcee18cceaa2aaa93e1143f
Author: Philip Hands <phil at hands.com>
Date:   Sun Jun 5 10:42:37 2016 +0200

    lvc: only check snapshots against files that exist on builder
---
 bin/lvc.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bin/lvc.sh b/bin/lvc.sh
index 5f7beba..8f0a3d6 100755
--- a/bin/lvc.sh
+++ b/bin/lvc.sh
@@ -68,7 +68,12 @@ mkdir -p $RESULTS
 
 mkdir -p $WORKSPACE/DebianToasterStorage
 
-discard_snapshots $LIBVIRT_DOMAIN_NAME /srv/jenkins/cucumber /srv/jenkins/bin/lvc.sh /srv/jenkins/job-cfg/lvc.yaml $NETBOOT
+for dep in /srv/jenkins/cucumber /srv/jenkins/bin/lvc.sh /srv/jenkins/job-cfg/lvc.yaml $NETBOOT ; do
+  if [ -e "$dep" ] ; then
+    LV_SNAP_DEPENDS="$LV_SNAP_DEPENDS $dep"
+  fi
+done
+discard_snapshots $LIBVIRT_DOMAIN_NAME $LV_SNAP_DEPENDS
 
 trap cleanup_all INT TERM EXIT
 

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