diff --git a/Jenkinsfile b/Jenkinsfile index c46f875c..818050f7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -50,16 +50,17 @@ pipeline { } } steps { + unstash 'debPackage' + script { remote.name = 'reprepro' remote.host = 'reprepro.reprepro' remote.user = 'root' remote.identityFile = '/home/jenkins/.ssh/id_ed25519' remote.allowAnyHosts = true - } - unstash 'debPackage' - sh 'ls output' + def debFile = sh(script: 'ls target/*.jar', returnStdout: true).trim() + } sshPut([ remote: remote,