summaryrefslogtreecommitdiff
path: root/vars
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-24 08:01:43 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-24 08:01:43 +0200
commit4690fd72efe322c25082aeed1b337cb0c0cf53f0 (patch)
tree6df77eee787f768e892163ece7134400493d0149 /vars
parente05f59a7ddcfee39c04d8f95bfb04031210c6471 (diff)
downloadvyos-build-4690fd72efe322c25082aeed1b337cb0c0cf53f0.tar.gz
vyos-build-4690fd72efe322c25082aeed1b337cb0c0cf53f0.zip
Jenkins: lib: T2625: use discrete SSH commands on deployment
Diffstat (limited to 'vars')
-rw-r--r--vars/buildPackage.groovy8
1 files changed, 3 insertions, 5 deletions
diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy
index 35f0784c..eb660eb9 100644
--- a/vars/buildPackage.groovy
+++ b/vars/buildPackage.groovy
@@ -181,11 +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}'; \
- uncron-add 'reprepro -v -b ${VYOS_REPO_PATH} deleteunreferenced'; \
- 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}'
"""
}
}