From ffe1cba8c00cf44ec776dee0acff2ff0871d45c0 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 20 Jun 2022 09:10:01 +0100 Subject: [PATCH] ci: create GitHub issue if build failure (#31954) (#31967) (cherry picked from commit f79397d94f3dec5fe274d42e193aaccee8710072) Co-authored-by: Victor Martinez --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1d9064534c97..c51e3f10ac3d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -203,7 +203,9 @@ VERSION=${env.VERSION}-SNAPSHOT""") dir("${BASE_DIR}"){ notifyBuildResult(prComment: true, slackComment: true, - analyzeFlakey: !isTag(), jobName: getFlakyJobName(withBranch: getFlakyBranch())) + analyzeFlakey: !isTag(), jobName: getFlakyJobName(withBranch: getFlakyBranch()), + githubIssue: isBranch() && currentBuild.currentResult != "SUCCESS", + githubLabels: 'Team:Elastic-Agent-Data-Plane') } } }