Use notification mechanism of job helper plugin for snapshot publishing
This commit is contained in:
parent
8225ab1f9b
commit
1235a6e3c7
|
@ -7,6 +7,8 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.helper = new JobHelper(this)
|
||||||
|
|
||||||
pipeline {
|
pipeline {
|
||||||
agent {
|
agent {
|
||||||
label 'Fedora'
|
label 'Fedora'
|
||||||
|
@ -36,7 +38,7 @@ pipeline {
|
||||||
string(credentialsId: 'release.gpg.passphrase', variable: 'SIGNING_PASS'),
|
string(credentialsId: 'release.gpg.passphrase', variable: 'SIGNING_PASS'),
|
||||||
file(credentialsId: 'release.gpg.private-key', variable: 'SIGNING_KEYRING')
|
file(credentialsId: 'release.gpg.private-key', variable: 'SIGNING_KEYRING')
|
||||||
]) {
|
]) {
|
||||||
sh """./gradlew clean publish \
|
sh '''./gradlew clean publish \
|
||||||
-PhibernatePublishUsername=$hibernatePublishUsername \
|
-PhibernatePublishUsername=$hibernatePublishUsername \
|
||||||
-PhibernatePublishPassword=$hibernatePublishPassword \
|
-PhibernatePublishPassword=$hibernatePublishPassword \
|
||||||
-PhibernatePluginPortalUsername=$hibernatePluginPortalUsername \
|
-PhibernatePluginPortalUsername=$hibernatePluginPortalUsername \
|
||||||
|
@ -44,15 +46,14 @@ pipeline {
|
||||||
--no-scan \
|
--no-scan \
|
||||||
-DsigningPassword=$SIGNING_PASS \
|
-DsigningPassword=$SIGNING_PASS \
|
||||||
-DsigningKeyFile=$SIGNING_KEYRING \
|
-DsigningKeyFile=$SIGNING_KEYRING \
|
||||||
"""
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
// Space-separated
|
notifyBuildResult
|
||||||
notifyBuildResult maintainers: 'christian.beikov@gmail.com'
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue