From fd11c1ea009058964b375b662936f4ae5c689285 Mon Sep 17 00:00:00 2001 From: Juan Ferrer Toribio Date: Tue, 9 Jul 2024 17:31:24 +0200 Subject: [PATCH] ci: refs #7643 Reprepro debug --- Jenkinsfile | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) 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') {