diff options
author | Philip Hands <phil@hands.com> | 2016-06-05 10:42:37 +0200 |
---|---|---|
committer | Philip Hands <phil@hands.com> | 2016-06-05 11:05:38 +0200 |
commit | c606484102b4ea7b0dcee18cceaa2aaa93e1143f (patch) | |
tree | 95e3c0dd2540d9c2ad6523738648c814a5f506fb /bin | |
parent | ad1993dbb55855538d37ca0c077e8cb684038bdd (diff) | |
download | jenkins.debian.net-c606484102b4ea7b0dcee18cceaa2aaa93e1143f.tar.xz |
lvc: only check snapshots against files that exist on builder
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/lvc.sh | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |