From 1235a6e3c7523dc07148e3fa297c5ec681f1322c Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Thu, 12 May 2022 09:10:01 +0200 Subject: [PATCH] Use notification mechanism of job helper plugin for snapshot publishing --- ci/snapshot-publish.Jenkinsfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ci/snapshot-publish.Jenkinsfile b/ci/snapshot-publish.Jenkinsfile index 1fa03223da..2cb2b4126c 100644 --- a/ci/snapshot-publish.Jenkinsfile +++ b/ci/snapshot-publish.Jenkinsfile @@ -7,6 +7,8 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) { return } +this.helper = new JobHelper(this) + pipeline { agent { label 'Fedora' @@ -36,7 +38,7 @@ pipeline { string(credentialsId: 'release.gpg.passphrase', variable: 'SIGNING_PASS'), file(credentialsId: 'release.gpg.private-key', variable: 'SIGNING_KEYRING') ]) { - sh """./gradlew clean publish \ + sh '''./gradlew clean publish \ -PhibernatePublishUsername=$hibernatePublishUsername \ -PhibernatePublishPassword=$hibernatePublishPassword \ -PhibernatePluginPortalUsername=$hibernatePluginPortalUsername \ @@ -44,15 +46,14 @@ pipeline { --no-scan \ -DsigningPassword=$SIGNING_PASS \ -DsigningKeyFile=$SIGNING_KEYRING \ - """ + ''' } } } } post { always { - // Space-separated - notifyBuildResult maintainers: 'christian.beikov@gmail.com' + notifyBuildResult } } } \ No newline at end of file