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