diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-02-09 21:34:51 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-02-09 21:47:23 +0100 |
commit | 6b8baa9751de164591c7f4d8ef7f47c8eca8e77d (patch) | |
tree | 778ff7d7e266a6bf68969a93b01d626f4d39d3e6 /vars/buildPackage.groovy | |
parent | 4c2ad52b5933e8d542bffc07ca00d1c1b3205fd3 (diff) | |
download | vyos-build-6b8baa9751de164591c7f4d8ef7f47c8eca8e77d.tar.gz vyos-build-6b8baa9751de164591c7f4d8ef7f47c8eca8e77d.zip |
Jenkins: convert FILE toString() when uploading artifacts from nested paths
Diffstat (limited to 'vars/buildPackage.groovy')
-rw-r--r-- | vars/buildPackage.groovy | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy index e6a4be2e..14f59f65 100644 --- a/vars/buildPackage.groovy +++ b/vars/buildPackage.groovy @@ -147,7 +147,7 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false) { // Packages like FRR produce their binary in a nested path e.g. packages/frr/frr-rpki-rtrlib-dbgsym_7.5_arm64.deb, // thus we will only extract the filename portion from FILE as the binary is scp'ed to SSH_DIR without any subpath. - def FILENAME = FILE.tokenize('/')[-1] + def FILENAME = FILE.toString().tokenize('/')[-1] sh(script: "ssh ${SSH_OPTS} ${SSH_REMOTE} -t \"uncron-add 'reprepro -v -b ${VYOS_REPO_PATH} ${ARCH} includedeb ${RELEASE} ${SSH_DIR}/${FILENAME}'\"") } sh(script: "ssh ${SSH_OPTS} ${SSH_REMOTE} -t \"uncron-add 'reprepro -v -b ${VYOS_REPO_PATH} deleteunreferenced'\"") |