summaryrefslogtreecommitdiff
path: root/Jenkinsfile
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-10-15 17:47:38 +0200
committerChristian Poessinger <christian@poessinger.com>2020-10-15 17:47:52 +0200
commit5be06ae5cd9acf4fdfae54d66ace1da82b66083f (patch)
tree253387a7e7f0d7aef6bdd62ab28e15d6bef0f56b /Jenkinsfile
parent98ed2bc8731a5880c65436eb37429096afa4b7c1 (diff)
downloadvyos-build-5be06ae5cd9acf4fdfae54d66ace1da82b66083f.tar.gz
vyos-build-5be06ae5cd9acf4fdfae54d66ace1da82b66083f.zip
Jenkins: fix Groovy syntax illegal string body character after dollar sign
Diffstat (limited to 'Jenkinsfile')
-rw-r--r--Jenkinsfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jenkinsfile b/Jenkinsfile
index cedffc20..5ddcd88d 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -187,6 +187,7 @@ pipeline {
// build up some fancy groovy variables so we do not need to write/copy
// every option over and over again!
def ARCH = sh(returnStdout: true, script: "dpkg --print-architecture").trim()
+ def ISO = sh(returnStdout: true, script: "ls build/vyos-*.iso").trim()
def SSH_DIR = '/home/sentrium/web/downloads.vyos.io/public_html/rolling/' + getGitBranchName() + '/' + ARCH
def SSH_OPTS = '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
def SSH_REMOTE = 'khagen@10.217.48.113'
@@ -194,7 +195,6 @@ 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 +28 -exec rm -f {} \\;'"