diff --git a/Jenkinsfile b/Jenkinsfile index 8d232db4..e49dcdff 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -37,11 +37,29 @@ pipeline { } steps { sh 'debuild -us -uc -b' - sh 'mkdir -p output' - sh 'mv ../*.deb ../*.build ../*.changes ../*.buildinfo output' - sleep 86400 + //sh 'mkdir -p output' + //sh 'mv ../*.deb ../*.build ../*.changes ../*.buildinfo output' - stash includes: 'output/*', name: 'debuildOutput' + script { + def files = findFiles(glob: '../*.changes') + files.each { file -> changesFile = file.name } + } + + withCredentials([sshUserPrivateKey( + credentialsId: 'jenkins-agent', + keyFileVariable: 'keyFile' + )]) { + configFileProvider([ + configFile(fileId: "dput.cf", + variable: 'DPUT_CONFIG') + ]) { + echo changesFile + echo 'dput --config $DPUT_CONFIG verdnatura' + sleep 86400 + } + } + + //stash includes: 'output/*', name: 'debuildOutput' } } stage('Reprepro') {