Do not attempt setting MWPS when pipeline is still running
What does this MR do and why?
Describe in detail what your merge request does and why.
Content
- Do not attempt setting MWPS when pipeline is still running
Currently, the merge API refuses to set MWPS if pipeline is still running, and Services::MergeWhenPipelineSucceedsService raises an error when that happens. To avoid unnecessary job failure notifications on Slack, do not attempt to set MWPS when the pipeline is still running.
This can be removed once the merge API is fixed, or we start using another API.
Author Check-list
-
Has documentation been updated?