Skip to content

Commit 8166bcb

Browse files
authored
ci: create GitHub issue if build failure (#31954) (#31966)
1 parent 77c8856 commit 8166bcb

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)