Add parameters for changelog mantainers
oggui-debian-package/pipeline/head There was a failure building this commit Details
testing/ogGui-multibranch/pipeline/head This commit looks good Details

jenkins-deb
Nicolas Arenas 2025-03-17 19:48:17 +01:00
parent 7bf25a86c8
commit 74ef13906d
1 changed files with 18 additions and 10 deletions

View File

@ -1,14 +1,19 @@
@Library('jenkins-shared-library') _
pipeline { pipeline {
agent { agent {
label 'jenkins-slave' label 'jenkins-slave'
} }
environment { environment {
DEBIAN_FRONTEND = 'noninteractive' DEBIAN_FRONTEND = 'noninteractive'
DEFAULT_DEV_NAME = 'Default Developer'
DEFAULT_DEV_EMAIL = 'default@email.com'
} }
options { options {
skipDefaultCheckout() skipDefaultCheckout()
} }
parameters {
string(name: 'DEV_NAME', defaultValue: '', description: 'Nombre del desarrollador')
string(name: 'DEV_EMAIL', defaultValue: '', description: 'Email del desarrollador')
}
stages { stages {
stage('Prepare Workspace') { stage('Prepare Workspace') {
steps { steps {
@ -30,7 +35,10 @@ pipeline {
stage('Generate Changelog') { stage('Generate Changelog') {
steps { steps {
script { script {
generateDebianChangelog(env.BUILD_DIR) def devName = params.DEV_NAME ? params.DEV_NAME : env.DEFAULT_DEV_NAME
def devEmail = params.DEV_EMAIL ? params.DEV_EMAIL : env.DEFAULT_DEV_EMAIL
generateDebianChangelog(env.BUILD_DIR, devName, devEmail)
} }
} }
} }
@ -47,12 +55,12 @@ pipeline {
} }
} }
} }
}
}
// stage ('Publish to Debian Repository') { // stage ('Publish to Debian Repository') {
// agent { label 'debian-repo' } // agent { label 'debian-repo' }
// steps { // steps {
// sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/*.deb" // sh "aptly repo add opengnsys-devel /var/tmp/opengnsys/debian-repo/*.deb"
// } // }
// } // }
}
}