forked from verdnatura/hedera-web
ci: refs #7643 Reprepro SSH credentials fix
This commit is contained in:
parent
59e7999385
commit
c6589989d4
|
@ -52,20 +52,22 @@ pipeline {
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
unstash 'debuildOutput'
|
unstash 'debuildOutput'
|
||||||
|
|
||||||
script {
|
script {
|
||||||
debFile = sh(script: 'ls output/*.deb', returnStdout: true).trim()
|
debFile = sh(script: 'ls output/*.deb', returnStdout: true).trim()
|
||||||
}
|
|
||||||
|
|
||||||
withCredentials([sshUserPrivateKey(
|
|
||||||
credentialsId: 'jenkins-agent',
|
|
||||||
usernameVariable: 'user',
|
|
||||||
keyFileVariable: 'identityFile'
|
|
||||||
)]) {
|
|
||||||
remote.name = 'reprepro'
|
remote.name = 'reprepro'
|
||||||
remote.host = 'reprepro.reprepro'
|
remote.host = 'reprepro.reprepro'
|
||||||
remote.allowAnyHosts = true
|
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([
|
sshPut([
|
||||||
|
|
Loading…
Reference in New Issue