From 8294a1c0ff07e5e67c1154c50b577098197a7d73 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 27 Oct 2020 16:23:22 +0000 Subject: [PATCH] [CI][flaky] reporting for PRs in GitHub (#21853) --- Jenkinsfile | 8 +++++++- filebeat/Jenkinsfile.yml | 4 +--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5c9d1a078b1..f90178d79da 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -128,7 +128,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