diff options
author | Philip Hands <phil@hands.com> | 2016-06-02 20:03:13 +0200 |
---|---|---|
committer | Philip Hands <phil@hands.com> | 2016-06-03 00:02:26 +0200 |
commit | c9fede781511e63a7a709c4b98a3c60217584eb5 (patch) | |
tree | c08b6fe5578e36a011a5fdafee73ca1fd6274458 | |
parent | f3c714905b57415860495ee01745be898b84dc23 (diff) | |
download | jenkins.debian.net-c9fede781511e63a7a709c4b98a3c60217584eb5.tar.xz |
lvc: discard snapsots when lvc.yaml is updated
-rwxr-xr-x | bin/lvc.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -45,7 +45,7 @@ discard_stale_snapshots() { sudo /usr/bin/virsh -q snapshot-list $domain | \ while read snap date time tz state ; do - if [ "$(find /srv/jenkins/cucumber /srv/jenkins/bin/lvc.sh $netboot -newermt "$date $time $tz" -print -quit)" ] ; then + if [ "$(find /srv/jenkins/cucumber /srv/jenkins/bin/lvc.sh /srv/jenkins/job-cfg/lvc.yaml $netboot -newermt "$date $time $tz" -print -quit)" ] ; then sudo /usr/bin/virsh snapshot-delete $domain $snap fi done |