From 2171a11762ec2848f02a12d84cc5950639cb1ea2 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Thu, 12 May 2022 09:30:21 +0200 Subject: [PATCH] Hopefully fix job configuration file reading --- ci/snapshot-publish.Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ci/snapshot-publish.Jenkinsfile b/ci/snapshot-publish.Jenkinsfile index 94ff8e9829..f701cce198 100644 --- a/ci/snapshot-publish.Jenkinsfile +++ b/ci/snapshot-publish.Jenkinsfile @@ -20,7 +20,6 @@ pipeline { options { rateLimitBuilds(throttle: [count: 1, durationName: 'hour', userBoost: true]) buildDiscarder(logRotator(numToKeepStr: '3', artifactNumToKeepStr: '3')) - configFileProvider([configFile(fileId: 'job-configuration.yaml', variable: 'JOB_CONFIGURATION_FILE')]) } triggers { cron 'H * * * *' @@ -55,7 +54,9 @@ pipeline { } post { always { - notifyBuildResult maintainers: (String) readYaml(file: $JOB_CONFIGURATION_FILE).notification?.email?.recipients + configFileProvider([configFile(fileId: 'job-configuration.yaml', variable: 'JOB_CONFIGURATION_FILE')]) { + notifyBuildResult maintainers: (String) readYaml(file: $JOB_CONFIGURATION_FILE).notification?.email?.recipients + } } } } \ No newline at end of file