From a24e1ea70e95ff50ef6ec77bf0fecdc68f60e417 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Forslund?= Date: Wed, 8 Apr 2020 08:41:57 +0200 Subject: [PATCH] Send report to pull request through PR comment --- Jenkinsfile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 6f09ec7d03..3a9ebb01aa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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