[CI] Add job to run issue-bot on failure
What does this MR do?
Adds a job to run issue-bot
when one or more jobs in a pipeline fails. For now, it only runs for master
pipelines on .com
.
Related issues
Closes gitlab-org/distribution/team-tasks#904 (closed)
To do
-
Create labels: pipeline failure
,pipeline failure::needs investigation
,pipeline failure::under investigation
in Charts project -
Create pipeline failure issue board in Charts project (https://gitlab.com/gitlab-org/charts/gitlab/-/boards/3503121?label_name[]=pipeline%20failure) -
[Needs maintainer] Create project access token with api
scope, and add to project's CI variables asISSUE_BOT_API_TOKEN
-
Test issue creation (add a job that with exit 1
and comment out therules
block of the issue-bot job) -
Link to pipeline failure issue board in #g_distribution
channel's pinned links
Checklist
See Definition of done.
For anything in this list which will not be completed, please provide a reason in the MR discussion.
Required
-
Merge Request Title and Description are up to date, accurate, and descriptive -
MR targeting the appropriate branch -
MR has a green pipeline on GitLab.com
Expected (please provide an explanation if not completing)
-
Test plan indicating conditions for success has been posted and passes -
Documentation created/updated -
Tests added -
Integration tests added to GitLab QA -
Equivalent MR/issue for omnibus-gitlab opened
Edited by Mitchell Nielsen