From 30b81d7931b596d70dbe392b5240eebed3804003 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 24 Jun 2020 08:02:24 +0200 Subject: Jenkins: lib: T2625: SSH commands must be wrapped in "" to function --- vars/buildPackage.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vars') 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}" """ } } -- cgit v1.2.3