ci: refs #7643 Reprepro SSH credentials fix
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
96fd08b369
commit
03be5f9a56
|
@ -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"
|
||||
])
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue