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 11:11:29 +02:00
parent 59e7999385
commit c6589989d4
1 changed files with 10 additions and 8 deletions

18
Jenkinsfile vendored
View File

@ -52,20 +52,22 @@ pipeline {
}
steps {
unstash 'debuildOutput'
script {
debFile = sh(script: 'ls output/*.deb', returnStdout: true).trim()
}
withCredentials([sshUserPrivateKey(
credentialsId: 'jenkins-agent',
usernameVariable: 'user',
keyFileVariable: 'identityFile'
)]) {
remote.name = 'reprepro'
remote.host = 'reprepro.reprepro'
remote.allowAnyHosts = true
remote.user = user
remote.identityFile = identityFile
withCredentials([sshUserPrivateKey(
credentialsId: 'jenkins-agent',
usernameVariable: 'user',
keyFileVariable: 'identityFile'
)]) {
remote.user = user
remote.identityFile = identityFile
}
}
sshPut([