summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2016-06-02 20:03:13 +0200
committerPhilip Hands <phil@hands.com>2016-06-03 00:02:26 +0200
commitc9fede781511e63a7a709c4b98a3c60217584eb5 (patch)
treec08b6fe5578e36a011a5fdafee73ca1fd6274458
parentf3c714905b57415860495ee01745be898b84dc23 (diff)
downloadjenkins.debian.net-c9fede781511e63a7a709c4b98a3c60217584eb5.tar.xz
lvc: discard snapsots when lvc.yaml is updated
-rwxr-xr-xbin/lvc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/lvc.sh b/bin/lvc.sh
index 004aefed..0ed3f61f 100755
--- a/bin/lvc.sh
+++ b/bin/lvc.sh
@@ -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