Skip to content

Commit 1235a6e

Browse files
committed
Use notification mechanism of job helper plugin for snapshot publishing
1 parent 8225ab1 commit 1235a6e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

ci/snapshot-publish.Jenkinsfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
77
return
88
}
99

10+
this.helper = new JobHelper(this)
11+
1012
pipeline {
1113
agent {
1214
label 'Fedora'
@@ -36,23 +38,22 @@ pipeline {
3638
string(credentialsId: 'release.gpg.passphrase', variable: 'SIGNING_PASS'),
3739
file(credentialsId: 'release.gpg.private-key', variable: 'SIGNING_KEYRING')
3840
]) {
39-
sh """./gradlew clean publish \
41+
sh '''./gradlew clean publish \
4042
-PhibernatePublishUsername=$hibernatePublishUsername \
4143
-PhibernatePublishPassword=$hibernatePublishPassword \
4244
-PhibernatePluginPortalUsername=$hibernatePluginPortalUsername \
4345
-PhibernatePluginPortalPassword=$hibernatePluginPortalPassword \
4446
--no-scan \
4547
-DsigningPassword=$SIGNING_PASS \
4648
-DsigningKeyFile=$SIGNING_KEYRING \
47-
"""
49+
'''
4850
}
4951
}
5052
}
5153
}
5254
post {
5355
always {
54-
// Space-separated
55-
notifyBuildResult maintainers: 'christian.beikov@gmail.com'
56+
notifyBuildResult
5657
}
5758
}
5859
}

0 commit comments

Comments
 (0)