summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-01 16:05:51 +0200
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2024-04-01 14:12:30 +0000
commita62eb854599050e3737e47bd148682dfd337a5ed (patch)
tree8cfed58a199c7738f8c182bb24b8045833cae6d3
parenta77d6def29792aa1c2b8752f228933b98ecd3e96 (diff)
downloadvyos-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.groovy7
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) {