From d66047c451a61364d20b53fd432a1b3e21dd18e0 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Fri, 5 Jul 2024 14:20:41 +0200 Subject: [PATCH] ci: refs #7643 Reprepro & debuild fixes --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 98b79e22..ab5233e8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -53,9 +53,10 @@ pipeline { steps { unstash 'debuildOutput' script { - def debPath = sh(script: 'ls output/*.deb', returnStdout: true).trim() - debFile = new File(debPath).getName() + def files = findFiles(glob: 'output/*.deb') + files.each { file -> debFile = file.name } } + echo debFile withCredentials([sshUserPrivateKey( credentialsId: 'jenkins-agent',