diff --git a/Jenkinsfile b/Jenkinsfile index e0e7a800..b79a0eaa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -52,7 +52,9 @@ pipeline { } steps { unstash 'debuildOutput' - debFile = sh(script: 'ls output/*.deb', returnStdout: true).trim() + script { + debFile = sh(script: 'ls output/*.deb', returnStdout: true).trim() + } withCredentials([sshUserPrivateKey( credentialsId: 'jenkins-agent',