Hopefully fix job configuration file reading and remodel trigger and concurrent execution of snapshot publish job

This commit is contained in:
Christian Beikov 2022-05-12 10:47:27 +02:00
parent 0b0b4fbdec
commit 604150fe47
1 changed files with 2 additions and 4 deletions

View File

@ -20,9 +20,7 @@ pipeline {
options { options {
rateLimitBuilds(throttle: [count: 1, durationName: 'hour', userBoost: true]) rateLimitBuilds(throttle: [count: 1, durationName: 'hour', userBoost: true])
buildDiscarder(logRotator(numToKeepStr: '3', artifactNumToKeepStr: '3')) buildDiscarder(logRotator(numToKeepStr: '3', artifactNumToKeepStr: '3'))
} disableConcurrentBuilds(abortPrevious: true)
triggers {
cron 'H * * * *'
} }
stages { stages {
stage('Checkout') { stage('Checkout') {
@ -55,7 +53,7 @@ pipeline {
post { post {
always { always {
configFileProvider([configFile(fileId: 'job-configuration.yaml', variable: 'JOB_CONFIGURATION_FILE')]) { configFileProvider([configFile(fileId: 'job-configuration.yaml', variable: 'JOB_CONFIGURATION_FILE')]) {
notifyBuildResult maintainers: (String) readYaml(file: $env.JOB_CONFIGURATION_FILE).notification?.email?.recipients notifyBuildResult maintainers: (String) readYaml(file: env.JOB_CONFIGURATION_FILE).notification?.email?.recipients
} }
} }
} }