From d5bcca655e53753451f3d9237d90fc6d91defede Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Thu, 12 May 2022 09:24:46 +0200 Subject: [PATCH] Fix snapshot publish configuration file reading --- ci/snapshot-publish.Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ci/snapshot-publish.Jenkinsfile b/ci/snapshot-publish.Jenkinsfile index 61ddf45498..94ff8e9829 100644 --- a/ci/snapshot-publish.Jenkinsfile +++ b/ci/snapshot-publish.Jenkinsfile @@ -2,7 +2,6 @@ * See https://github.com/hibernate/hibernate-jenkins-pipeline-helpers */ @Library('hibernate-jenkins-pipeline-helpers@1.5') _ -import org.hibernate.jenkins.pipeline.helpers.job.JobHelper // Avoid running the pipeline on branch indexing if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) { @@ -11,8 +10,6 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) { return } -this.helper = new JobHelper(this) - pipeline { agent { label 'Fedora' @@ -23,6 +20,7 @@ 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 * * * *' @@ -57,7 +55,7 @@ pipeline { } post { always { - notifyBuildResult + notifyBuildResult maintainers: (String) readYaml(file: $JOB_CONFIGURATION_FILE).notification?.email?.recipients } } } \ No newline at end of file