refs #7593 Jenkinsfile added certs moved to certs dir
gitea/vn-host/pipeline/head This commit looks good
Details
gitea/vn-host/pipeline/head This commit looks good
Details
This commit is contained in:
parent
c6af807dc2
commit
39beb1494e
|
@ -0,0 +1,54 @@
|
|||
#!/usr/bin/env groovy
|
||||
|
||||
node {
|
||||
stage('Setup') {
|
||||
echo "NODE_NAME: ${env.NODE_NAME}"
|
||||
echo "WORKSPACE: ${env.WORKSPACE}"
|
||||
}
|
||||
}
|
||||
pipeline {
|
||||
agent any
|
||||
environment {
|
||||
PROJECT_NAME = 'vn-host'
|
||||
}
|
||||
stages {
|
||||
stage('Debuild') {
|
||||
when {
|
||||
branch 'main'
|
||||
}
|
||||
agent {
|
||||
docker {
|
||||
image 'registry.verdnatura.es/verdnatura/debuild:2.23.4-vn7'
|
||||
registryUrl 'https://registry.verdnatura.es/'
|
||||
registryCredentialsId 'docker-registry'
|
||||
}
|
||||
}
|
||||
steps {
|
||||
sh 'debuild -us -uc -b'
|
||||
sh 'mkdir -p debuild'
|
||||
sh 'mv ../vn-host_* debuild'
|
||||
sh 'mv ../vn-apt-source_* debuild'
|
||||
|
||||
configFileProvider([
|
||||
configFile(fileId: "dput.cf", variable: 'DPUT_CONFIG')
|
||||
]) {
|
||||
script {
|
||||
def files = findFiles(glob: 'debuild/*.changes')
|
||||
files.each { file ->
|
||||
env.CHANGES_FILE = file.name
|
||||
sshagent(credentials: ['jenkins-agent']) {
|
||||
sh 'dput --config "$DPUT_CONFIG" verdnatura "debuild/$CHANGES_FILE"'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
post {
|
||||
unsuccessful {
|
||||
setEnv()
|
||||
sendEmail()
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +1,8 @@
|
|||
vn-host (3.0.0) stable; urgency=medium
|
||||
vn-host (3.0.1) stable; urgency=medium
|
||||
|
||||
* Intermediate LAB CA removed.
|
||||
* Certificate files renamed to match convenion.
|
||||
* Certificates moved to certs folder.
|
||||
|
||||
-- Juan Ferrer Toribio <juan@verdnatura.es> Wed, 4 Feb 2025 12:00:00 +0200
|
||||
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
Verdnatura_CA.crt usr/share/ca-certificates/verdnatura
|
||||
verdnatura_es.crt usr/share/ca-certificates/verdnatura
|
||||
certs/Verdnatura_CA.crt usr/share/ca-certificates/verdnatura
|
||||
certs/verdnatura_es.crt usr/share/ca-certificates/verdnatura
|
||||
|
|
Loading…
Reference in New Issue