ci: refs #7643 Reprepro debug
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
bdf7a16003
commit
ddaff6afe9
|
@ -5,7 +5,7 @@ def BRANCH_ENV = [
|
|||
master: 'production'
|
||||
]
|
||||
def remote = [:]
|
||||
def debFile
|
||||
def changesFile
|
||||
|
||||
node {
|
||||
stage('Setup') {
|
||||
|
@ -38,8 +38,8 @@ pipeline {
|
|||
steps {
|
||||
sh 'debuild -us -uc -b'
|
||||
sh 'mkdir -p output'
|
||||
sh 'mv ../*.deb ../*.build ../*.buildinfo ../*.changes output'
|
||||
sleep 3600
|
||||
sh 'mv ../*.deb ../*.build ../*.changes output'
|
||||
sleep 86400
|
||||
|
||||
stash includes: 'output/*', name: 'debuildOutput'
|
||||
}
|
||||
|
@ -52,14 +52,13 @@ pipeline {
|
|||
}
|
||||
}
|
||||
environment {
|
||||
REPREPRO_DIR = '/var/lib/reprepro'
|
||||
REPO_DIR = "$REPREPRO_DIR/repo"
|
||||
REPREPRO_BASE_DIR = '/var/lib/reprepro/repo'
|
||||
}
|
||||
steps {
|
||||
unstash 'debuildOutput'
|
||||
script {
|
||||
def files = findFiles(glob: 'output/*.deb')
|
||||
files.each { file -> debFile = file.name }
|
||||
def files = findFiles(glob: 'output/*.changes')
|
||||
files.each { file -> changesFile = file.name }
|
||||
}
|
||||
|
||||
withCredentials([sshUserPrivateKey(
|
||||
|
@ -76,12 +75,12 @@ pipeline {
|
|||
}
|
||||
sshPut([
|
||||
remote: remote,
|
||||
from: "output/$debFile",
|
||||
into: "$REPO_DIR/incoming"
|
||||
from: "output/$changesFile",
|
||||
into: "$REPREPRO_BASE_DIR/incoming"
|
||||
])
|
||||
sshCommand([
|
||||
remote: remote,
|
||||
command: "reprepro -b $REPO_DIR --gnupghome $REPREPRO_DIR/.gnupg includedeb bookworm $REPO_DIR/incoming/$debFile"
|
||||
command: "reprepro processincoming default $changesFile"
|
||||
])
|
||||
}
|
||||
}
|
||||
|
@ -105,11 +104,11 @@ pipeline {
|
|||
}
|
||||
|
||||
sh 'docker-compose build --build-arg BUILD_ID=$BUILD_ID --parallel'
|
||||
sh "docker tag $IMAGE:$TAG $IMAGE:latest"
|
||||
sh 'docker tag $IMAGE:$TAG $IMAGE:latest'
|
||||
|
||||
sh 'docker login --username $CREDS_USR --password $CREDS_PSW $REGISTRY'
|
||||
sh "docker push $IMAGE:$TAG"
|
||||
sh "docker push $IMAGE:latest"
|
||||
sh 'docker push $IMAGE:$TAG'
|
||||
sh 'docker push $IMAGE:latest'
|
||||
|
||||
withKubeConfig([
|
||||
serverUrl: "$KUBERNETES_API",
|
||||
|
|
Loading…
Reference in New Issue