diff options
author | Christian Breunig <christian@breunig.cc> | 2024-04-01 16:05:51 +0200 |
---|---|---|
committer | Christian Breunig <christian@breunig.cc> | 2024-04-01 16:05:56 +0200 |
commit | adab6badd7b1a41bae55d8ae3fa58d213f5ce13d (patch) | |
tree | b87d82031e58dd4be20a3be7980184505c9e97bd /vars | |
parent | ebfbdc852e8715949fa1cc6c26f662d07be16923 (diff) | |
download | vyos-build-adab6badd7b1a41bae55d8ae3fa58d213f5ce13d.tar.gz vyos-build-adab6badd7b1a41bae55d8ae3fa58d213f5ce13d.zip |
Jenkins: remove Debian build dependency files from the workspace
No need to provide them via the package repository
Diffstat (limited to 'vars')
-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 9e1ba1db..531e51d9 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) { |