ci: refs #7643 Reprepro SSH credentials debug
gitea/hedera-web/pipeline/head There was a failure building this commit
Details
gitea/hedera-web/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
444732460e
commit
b73e292cb0
|
@ -56,28 +56,28 @@ pipeline {
|
||||||
debFile = sh(script: 'ls output/*.deb', returnStdout: true).trim()
|
debFile = sh(script: 'ls output/*.deb', returnStdout: true).trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
script {
|
withCredentials([sshUserPrivateKey(
|
||||||
withCredentials([sshUserPrivateKey(
|
credentialsId: 'jenkins-agent',
|
||||||
credentialsId: 'jenkins-agent',
|
usernameVariable: 'user',
|
||||||
usernameVariable: 'user',
|
keyFileVariable: 'identityFile'
|
||||||
keyFileVariable: 'identityFile'
|
)]) {
|
||||||
)]) {
|
script {
|
||||||
remote.user = user
|
remote.user = user
|
||||||
remote.identityFile = identityFile
|
remote.identityFile = identityFile
|
||||||
remote.name = 'reprepro'
|
remote.name = 'reprepro'
|
||||||
remote.host = 'reprepro.reprepro'
|
remote.host = 'reprepro.reprepro'
|
||||||
remote.allowAnyHosts = true
|
remote.allowAnyHosts = true
|
||||||
|
|
||||||
sshPut([
|
|
||||||
remote: remote,
|
|
||||||
from: "$debFile",
|
|
||||||
into: '/tmp'
|
|
||||||
])
|
|
||||||
sshcommand([
|
|
||||||
remote: remote,
|
|
||||||
command: "sudo -u www-data reprepro -b /reprepro --gnupghome /reprepro/.gnupg includedeb bookworm /tmp/$debFile"
|
|
||||||
])
|
|
||||||
}
|
}
|
||||||
|
sleep 600 // DEBUG
|
||||||
|
sshPut([
|
||||||
|
remote: remote,
|
||||||
|
from: "$debFile",
|
||||||
|
into: '/tmp'
|
||||||
|
])
|
||||||
|
sshcommand([
|
||||||
|
remote: remote,
|
||||||
|
command: "sudo -u www-data reprepro -b /reprepro --gnupghome /reprepro/.gnupg includedeb bookworm /tmp/$debFile"
|
||||||
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue