From 601ffc508a9879a9d34c517ee2971c4c3f48d615 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Fri, 17 Jun 2022 09:24:14 +0100 Subject: [PATCH] ci: create GitHub issue if build failure (#31954) --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 017a3382992e..704708b4b222 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') } } }