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',