fix: refs #7643 Reprepro stage
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Juan Ferrer 2024-07-04 11:08:26 +02:00
parent 61fac85554
commit baa596430e
1 changed files with 28 additions and 2 deletions

30
Jenkinsfile vendored
View File

@ -4,6 +4,7 @@ def BRANCH_ENV = [
test: 'test',
master: 'production'
]
def remote = [:]
node {
stage('Setup') {
@ -35,8 +36,33 @@ pipeline {
}
}
steps {
sh 'debuild -us -uc -b'
sh 'vn-includedeb bookworm'
sh 'debuild -us -uc -b --buildinfo-option="-o output" --changes-option="-o output"'
}
}
stage('Reprepro') {
when {
anyOf {
branch 'master'
branch 'test'
}
}
steps {
script {
remote.name = 'reprerpo'
remote.host = 'reprepro.reprepro'
remote.user = 'root'
remote.identityFile = '/home/jenkins/.ssh/id_ed25519'
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"
])
}
}
stage('Container') {