ci: refs #7643 Reprepro & debuild fixes
gitea/hedera-web/pipeline/head There was a failure building this commit Details

This commit is contained in:
Juan Ferrer 2024-07-09 10:38:42 +02:00
parent b62185289f
commit 29168a6927
1 changed files with 2 additions and 4 deletions

6
Jenkinsfile vendored
View File

@ -56,7 +56,6 @@ pipeline {
def files = findFiles(glob: 'output/*.deb')
files.each { file -> debFile = file.name }
}
echo debFile
withCredentials([sshUserPrivateKey(
credentialsId: 'jenkins-agent',
@ -69,16 +68,15 @@ pipeline {
remote.name = 'reprepro'
remote.host = 'reprepro.reprepro'
remote.allowAnyHosts = true
remote.logLevel = 'FINEST'
}
sshPut([
remote: remote,
from: "output/$debFile",
into: '/var/www/html/incoming'
into: '/var/lib/reprepro/repo/incoming'
])
sshCommand([
remote: remote,
command: "sudo -u www-data reprepro -b /reprepro --gnupghome /reprepro/.gnupg includedeb bookworm /var/www/html/incoming/$debFile"
command: "reprepro -b /reprepro --gnupghome /reprepro/.gnupg includedeb bookworm /var/lib/reprepro/repo/incoming/$debFile"
])
}
}