Skip to content

Draft: Add a rake task for monitoring a pipeline

Reuben Pereira requested to merge rp/pipeline_monitor into master

What does this MR do?

This rake task can be executed on a developer's machine. It will notify when the pipeline being monitored succeeds, fails, or goes into any state other than running. This can be useful when RMs have to monitor multiple pipelines and take some action when they complete, or retry them when they fail, etc.

Example execution: RELEASE_BOT_OPS_TOKEN='' bundle exec rake 'release:monitor[https://ops.gitlab.net/gitlab-com/gl-infra/deployer/-/pipelines/1121941]'

Example notification (the link is clickable):

ruby_notification1

Author Check-list

  • Has documentation been updated?
Edited by Reuben Pereira

Merge request reports