From a62eb854599050e3737e47bd148682dfd337a5ed Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Mon, 1 Apr 2024 16:05:51 +0200 Subject: Jenkins: remove Debian build dependency files from the workspace No need to provide them via the package repository (cherry picked from commit adab6badd7b1a41bae55d8ae3fa58d213f5ce13d) --- vars/buildPackage.groovy | 7 +++++++ 1 file changed, 7 insertions(+) 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) { -- cgit v1.2.3