Send report to pull request through PR comment
@@ -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
