Skip to content

Commit 7d7a670

Browse files
v1vmergify[bot]
authored andcommitted
ci: create GitHub issue if build failure (#31954)
(cherry picked from commit 7102be4)
1 parent 77c8856 commit 7d7a670

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Jenkinsfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,9 @@ VERSION=${env.VERSION}-SNAPSHOT""")
203203
dir("${BASE_DIR}"){
204204
notifyBuildResult(prComment: true,
205205
slackComment: true,
206-
analyzeFlakey: !isTag(), jobName: getFlakyJobName(withBranch: getFlakyBranch()))
206+
analyzeFlakey: !isTag(), jobName: getFlakyJobName(withBranch: getFlakyBranch()),
207+
githubIssue: isBranch() && currentBuild.currentResult != "SUCCESS",
208+
githubLabels: 'Team:Elastic-Agent-Data-Plane')
207209
}
208210
}
209211
}

0 commit comments

Comments
 (0)