fix: refs #7643 Reprepro stage
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit
Details
gitea/hedera-web/pipeline/head Something is wrong with the build of this commit
Details
This commit is contained in:
parent
61fac85554
commit
baa596430e
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue