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