diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-01 16:05:51 +0200 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-04-01 14:12:30 +0000 |
commit | a62eb854599050e3737e47bd148682dfd337a5ed (patch) | |
tree | 8cfed58a199c7738f8c182bb24b8045833cae6d3 | |
parent | a77d6def29792aa1c2b8752f228933b98ecd3e96 (diff) | |
download | vyos-build-a62eb854599050e3737e47bd148682dfd337a5ed.tar.gz vyos-build-a62eb854599050e3737e47bd148682dfd337a5ed.zip |
Jenkins: remove Debian build dependency files from the workspace
No need to provide them via the package repository
(cherry picked from commit adab6badd7b1a41bae55d8ae3fa58d213f5ce13d)
-rw-r--r-- | vars/buildPackage.groovy | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vars/buildPackage.groovy b/vars/buildPackage.groovy index f000043f..89f9a7d4 100644 --- a/vars/buildPackage.groovy +++ b/vars/buildPackage.groovy @@ -194,6 +194,13 @@ def call(description=null, pkgList=null, buildCmd=null, buildArm=false, changesP sh(script: "ssh ${SSH_OPTS} ${SSH_REMOTE} -t \"uncron-add 'reprepro -v -b ${VYOS_REPO_PATH} removesrc ${RELEASE} ${PACKAGE}'\"") } } + files = findFiles(glob: '**/*-build-deps_*.deb') + if (files) { + echo "Remove Debian build dependency files from the workspace..." + files.each { FILE -> + sh(script: "rm -f ${FILE}") + } + } files = findFiles(glob: '**/*.deb') if (files) { |