summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-15 17:46:14 +0200
committerChristian Poessinger <christian@poessinger.com>2020-10-15 17:46:14 +0200
commit98ed2bc8731a5880c65436eb37429096afa4b7c1 (patch)
tree3c55ccf1955b7978a2348aca4c6426cd259b868e /Jenkinsfile
parent1c1323cc67421ff16d5d4fc83f1e8aed2a97f5a2 (diff)
downloadvyos-build-98ed2bc8731a5880c65436eb37429096afa4b7c1.tar.gz
vyos-build-98ed2bc8731a5880c65436eb37429096afa4b7c1.zip
Jenkins: create and upload ISO sha256 hash
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index 5571e87d..cedffc20 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -194,9 +194,11 @@ pipeline {
// No need to explicitly check the return code. The pipeline
// will fail if sh returns a non 0 exit code
sh """
+ ISO=$(ls build/vyos-*.iso)
+ 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 +14 -exec rm -f {} \\;'"
- scp ${SSH_OPTS} build/vyos*.iso ${SSH_REMOTE}:${SSH_DIR}/
+ ssh ${SSH_OPTS} ${SSH_REMOTE} -t "bash --login -c 'find ${SSH_DIR} -type f -mtime +28 -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'"
"""
}