summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-02-05 17:26:33 +0100
committerChristian Poessinger <christian@poessinger.com>2021-02-05 17:26:46 +0100
commited2f9b3f39e6ab4b50f19932af38599a8985a82b (patch)
treee988e3d36bc4c83c7e8547b759ab701cc0437ed0 /Jenkinsfile
parent38fa98af45d6c22d7d876bc724d957d2545d011a (diff)
downloadvyos-build-ed2f9b3f39e6ab4b50f19932af38599a8985a82b.tar.gz
vyos-build-ed2f9b3f39e6ab4b50f19932af38599a8985a82b.zip
Jenkins: only keep ISO images for 14 days
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 1429b00b..c8eda285 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -207,7 +207,7 @@ pipeline {
sh """
sha256sum ${ISO} > ${ISO}.sha256
ssh ${SSH_OPTS} ${SSH_REMOTE} -t "bash --login -c 'mkdir -p ${SSH_DIR}'"
- ssh ${SSH_OPTS} ${SSH_REMOTE} -t "bash --login -c 'find ${SSH_DIR} -type f -mtime +28 -exec rm -f {} \\;'"
+ ssh ${SSH_OPTS} ${SSH_REMOTE} -t "bash --login -c 'find ${SSH_DIR} -type f -mtime +14 -exec rm -f {} \\;'"
scp ${SSH_OPTS} -r ${ISO} ${ISO}.sha256 ${SSH_REMOTE}:${SSH_DIR}/
ssh ${SSH_OPTS} ${SSH_REMOTE} -t "bash --login -c '/usr/bin/make-latest-rolling-symlink.sh'"
"""