ci: refs #7643 Reprepro SSH credentials fix
gitea/hedera-web/pipeline/head There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2024-07-05 14:11:04 +02:00
parent 96fd08b369
commit 03be5f9a56
1 changed files with 5 additions and 4 deletions

9
Jenkinsfile vendored
View File

@ -53,7 +53,8 @@ pipeline {
steps { steps {
unstash 'debuildOutput' unstash 'debuildOutput'
script { script {
debFile = sh(script: 'ls output/*.deb', returnStdout: true).trim() def debPath = sh(script: 'ls output/*.deb', returnStdout: true).trim()
debFile = new File(debPath).getName()
} }
withCredentials([sshUserPrivateKey( withCredentials([sshUserPrivateKey(
@ -71,12 +72,12 @@ pipeline {
} }
sshPut([ sshPut([
remote: remote, remote: remote,
from: "$debFile", from: 'output/*',
into: '/tmp' into: '/var/www/html/incoming'
]) ])
sshCommand([ sshCommand([
remote: remote, remote: remote,
command: "sudo -u www-data reprepro -b /reprepro --gnupghome /reprepro/.gnupg includedeb bookworm /tmp/$debFile" command: "sudo -u www-data reprepro -b /reprepro --gnupghome /reprepro/.gnupg includedeb bookworm /var/www/html/incoming/$debFile"
]) ])
} }
} }