summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-24 08:02:24 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-24 08:02:24 +0200
commit30b81d7931b596d70dbe392b5240eebed3804003 (patch)
treeb8f2c2e554aa5ef79c69458cd9f04d3bf069377d
parent4690fd72efe322c25082aeed1b337cb0c0cf53f0 (diff)
downloadvyos-build-30b81d7931b596d70dbe392b5240eebed3804003.tar.gz
vyos-build-30b81d7931b596d70dbe392b5240eebed3804003.zip
Jenkins: lib: T2625: SSH commands must be wrapped in "" to function
-rw-r--r--vars/buildPackage.groovy6
1 files changed, 3 insertions, 3 deletions
diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy
index eb660eb9..61ff7dee 100644
--- a/vars/buildPackage.groovy
+++ b/vars/buildPackage.groovy
@@ -181,9 +181,9 @@ def call(description=null, pkgList=null, buildCmd=null) {
sh """
ssh ${SSH_OPTS} ${SSH_REMOTE} -t "bash --login -c 'mkdir -p ${SSH_DIR}'"
scp ${SSH_OPTS} ${FILE} ${SSH_REMOTE}:${SSH_DIR}/
- ssh ${SSH_OPTS} ${SSH_REMOTE} uncron-add 'reprepro -v -b ${VYOS_REPO_PATH} ${ARCH_OPT} remove ${RELEASE} ${PKG}'
- ssh ${SSH_OPTS} ${SSH_REMOTE} uncron-add 'reprepro -v -b ${VYOS_REPO_PATH} deleteunreferenced'
- ssh ${SSH_OPTS} ${SSH_REMOTE} uncron-add 'reprepro -v -b ${VYOS_REPO_PATH} ${ARCH_OPT} includedeb ${RELEASE} ${SSH_DIR}/${FILE}'
+ ssh ${SSH_OPTS} ${SSH_REMOTE} uncron-add "reprepro -v -b ${VYOS_REPO_PATH} ${ARCH_OPT} remove ${RELEASE} ${PKG}"
+ ssh ${SSH_OPTS} ${SSH_REMOTE} uncron-add "reprepro -v -b ${VYOS_REPO_PATH} deleteunreferenced"
+ ssh ${SSH_OPTS} ${SSH_REMOTE} uncron-add "reprepro -v -b ${VYOS_REPO_PATH} ${ARCH_OPT} includedeb ${RELEASE} ${SSH_DIR}/${FILE}"
"""
}
}