summaryrefslogtreecommitdiff
path: root/vars
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-04-01 16:05:51 +0200
committerChristian Breunig <christian@breunig.cc>2024-04-01 16:05:56 +0200
commitadab6badd7b1a41bae55d8ae3fa58d213f5ce13d (patch)
treeb87d82031e58dd4be20a3be7980184505c9e97bd /vars
parentebfbdc852e8715949fa1cc6c26f662d07be16923 (diff)
downloadvyos-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.groovy7
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) {