#247 -- Fix jenkinsfile
This commit is contained in:
parent
eb5ad650c9
commit
6f6a8b0eac
20
Jenkinsfile
vendored
20
Jenkinsfile
vendored
@ -8,21 +8,11 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
post {
|
post {
|
||||||
failure {
|
always {
|
||||||
emailext body: 'Check console output at $BUILD_URL to view the results. \n\n ${CHANGES} \n\n -------------------------------------------------- \n${BUILD_LOG, maxLines=100, escapeHtml=false}',
|
script {
|
||||||
to: "${EMAIL_TO}",
|
if (currentBuild.currentResult == 'FAILURE') {
|
||||||
subject: 'Build failed in Jenkins: $PROJECT_NAME - #$BUILD_NUMBER'
|
step([$class: 'Mailer', notifyEveryUnstableBuild: true, recipients: "a.romanov@ulstu.ru", sendToIndividuals: true])
|
||||||
}
|
|
||||||
unstable {
|
|
||||||
emailext body: 'Check console output at $BUILD_URL to view the results. \n\n ${CHANGES} \n\n -------------------------------------------------- \n${BUILD_LOG, maxLines=100, escapeHtml=false}',
|
|
||||||
to: "${EMAIL_TO}",
|
|
||||||
subject: 'Unstable build in Jenkins: $PROJECT_NAME - #$BUILD_NUMBER'
|
|
||||||
}
|
|
||||||
changed {
|
|
||||||
emailext body: 'Check console output at $BUILD_URL to view the results.',
|
|
||||||
to: "${EMAIL_TO}",
|
|
||||||
subject: 'Jenkins build is back to normal: $PROJECT_NAME - #$BUILD_NUMBER'
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user