Use shared library
testing/ogGui-multibranch/pipeline/head This commit looks good Details
oggui-debian-package/pipeline/head This commit looks good Details

jenkins-deb
Nicolas Arenas 2025-03-17 19:20:58 +01:00
parent eedc6cb59d
commit 7bf25a86c8
1 changed files with 20 additions and 10 deletions

View File

@ -1,3 +1,4 @@
@Library('jenkins-shared-library') _
pipeline { pipeline {
agent { agent {
label 'jenkins-slave' label 'jenkins-slave'
@ -12,11 +13,12 @@ pipeline {
stage('Prepare Workspace') { stage('Prepare Workspace') {
steps { steps {
script { script {
env.BUILD_DIR = "${WORKSPACE}/ogcore" env.BUILD_DIR = "${WORKSPACE}/oggui"
sh "mkdir -p ${env.BUILD_DIR}" sh "mkdir -p ${env.BUILD_DIR}"
} }
} }
} }
stage('Checkout') { stage('Checkout') {
steps { steps {
dir("${env.BUILD_DIR}") { dir("${env.BUILD_DIR}") {
@ -24,6 +26,15 @@ pipeline {
} }
} }
} }
stage('Generate Changelog') {
steps {
script {
generateDebianChangelog(env.BUILD_DIR)
}
}
}
stage('Build') { stage('Build') {
steps { steps {
dir("${env.BUILD_DIR}") { dir("${env.BUILD_DIR}") {
@ -34,15 +45,14 @@ pipeline {
scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/ scp -r ../artifacts/* aptly@172.17.8.68:/var/tmp/opengnsys/debian-repo/
''' '''
} }
}
}
} // stage ('Publish to Debian Repository') {
} // agent { label 'debian-repo' }
stage ('Publish to Debian Repository') { // steps {
agent { label 'debian-repo' } // sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/*.deb"
steps { // }
sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/*.deb" // }
}
}
} }
} }