Use notification mechanism of job helper plugin for snapshot publishing

This commit is contained in:
Christian Beikov 2022-05-12 09:10:01 +02:00
parent 8225ab1f9b
commit 1235a6e3c7
1 changed files with 5 additions and 4 deletions

View File

@ -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
}
}
}