From 330a7e549ddf93509d32d4dde2044b8d34fa2654 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 28 Oct 2020 10:30:22 +0000 Subject: [PATCH] [CI][flaky] reporting for PRs in GitHub (#21853) (#22196) --- Jenkinsfile | 8 +++++++- filebeat/Jenkinsfile.yml | 4 +--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 111a9250230..2699aea7345 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -126,7 +126,13 @@ pipeline { runbld(stashedTestReports: stashedTestReports, project: env.REPO) } cleanup { - notifyBuildResult(prComment: true, slackComment: true, slackNotify: (isBranch() || isTag())) + // Required to enable the flaky test reporting with GitHub. Workspace exists since the post/always runs earlier + dir("${BASE_DIR}"){ + // TODO analyzeFlakey does not support other release branches but the master branch. + notifyBuildResult(prComment: true, + slackComment: true, slackNotify: (isBranch() || isTag()), + analyzeFlakey: true, flakyReportIdx: "reporter-beats-beats-master") + } } } } diff --git a/filebeat/Jenkinsfile.yml b/filebeat/Jenkinsfile.yml index d8ea11c24a5..d2e1d866526 100644 --- a/filebeat/Jenkinsfile.yml +++ b/filebeat/Jenkinsfile.yml @@ -67,6 +67,4 @@ stages: labels: - "windows-10" branches: true ## for all the branches - tags: true ## for all the tags - branches: true ## for all the branches - tags: true ## for all the tags + tags: true ## for all the tags \ No newline at end of file