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:27:02 +0100
commitd5abc54c056254696fef2b31806a3130db40ad32 (patch)
tree4d75e50486c13bd3dddd2e54fca724da6968fd8b /Jenkinsfile
parente5b0cc71295acd083d5b59e7d4473dca3eb88ecb (diff)
downloadvyos-build-d5abc54c056254696fef2b31806a3130db40ad32.tar.gz
vyos-build-d5abc54c056254696fef2b31806a3130db40ad32.zip
Jenkins: only keep ISO images for 14 days
(cherry picked from commit ed2f9b3f39e6ab4b50f19932af38599a8985a82b)
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index e7490813..5dcec7de 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -206,7 +206,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'"
"""