Send report to pull request through PR comment

pull/2530/head
Åke Forslund 2020-04-08 08:41:57 +02:00
parent 53f2195023
commit a24e1ea70e
1 changed files with 13 additions and 0 deletions

13
Jenkinsfile vendored
View File

@ -80,6 +80,13 @@ pipeline {
echo 'Report Published'
}
failure {
script {
// Create comment for Pull Requests
if (env.CHANGE_ID) {
echo 'Sending PR comment'
pullRequest.comment('Voight Kampff Integration Test Failed ([Results](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '))')
}
}
// Send failure email containing a link to the Jenkins build
// the results report and the console log messages to Mycroft
// developers, the developers of the pull request and the
@ -119,6 +126,12 @@ pipeline {
)
}
success {
script {
if (env.CHANGE_ID) {
echo 'Sending PR comment'
pullRequest.comment('Voight Kampff Integration Test Succeeded ([Results](https://reports.mycroft.ai/core/' + env.BRANCH_ALIAS + '))')
}
}
// Send success email containing a link to the Jenkins build
// and the results report to Mycroft developers, the developers
// of the pull request and the developers that caused the