Jenkins uses common utils
gitea/vn-autoconfig/master There was a failure building this commit
Details
gitea/vn-autoconfig/master There was a failure building this commit
Details
This commit is contained in:
parent
3a9f4162c9
commit
08e6af344a
|
@ -8,17 +8,6 @@ pipeline {
|
|||
stages {
|
||||
stage('Checkout') {
|
||||
steps {
|
||||
script {
|
||||
if (!env.GIT_COMMITTER_EMAIL) {
|
||||
env.COMMITTER_EMAIL = sh(
|
||||
script: 'git --no-pager show -s --format="%ae"',
|
||||
returnStdout: true
|
||||
).trim()
|
||||
} else {
|
||||
env.COMMITTER_EMAIL = env.GIT_COMMITTER_EMAIL;
|
||||
}
|
||||
}
|
||||
|
||||
sh 'printenv'
|
||||
}
|
||||
}
|
||||
|
@ -47,16 +36,7 @@ pipeline {
|
|||
post {
|
||||
always {
|
||||
script {
|
||||
if (!env.COMMITTER_EMAIL) return
|
||||
try {
|
||||
mail(
|
||||
to: env.COMMITTER_EMAIL,
|
||||
subject: "Pipeline: ${env.JOB_NAME} (${env.BUILD_NUMBER}): ${currentBuild.currentResult}",
|
||||
body: "Check status at ${env.BUILD_URL}"
|
||||
)
|
||||
} catch (e) {
|
||||
echo e.toString()
|
||||
}
|
||||
util.sendEmail()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
vn-autoconfig (1.0.1) stable; urgency=low
|
||||
vn-autoconfig (1.0.2) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
Loading…
Reference in New Issue