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 {
unstash 'debuildOutput'
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(
@ -71,12 +72,12 @@ pipeline {
}
sshPut([
remote: remote,
from: "$debFile",
into: '/tmp'
from: 'output/*',
into: '/var/www/html/incoming'
])
sshCommand([
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"
])
}
}