Uploaded image for project: 'OpenShift Pipelines'
  1. OpenShift Pipelines
  2. SRVKP-6713

[Downstream CI] Send Slack notification when cleanup-cloud-resources fails

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • None
    • QA
    • 2
    • False
    • None
    • False

      Story (Required)

      As a QE I want to be notified immediately when task run cleanup-cloud-resources (generated by a cron job with the same name) fails.

      Background (Required)

      In the pipeline uninstall-cluster we send a Slack notifcation to #tektoncd-pipeline-ci channel when pipeline run finishes so we immediately know that it needs attention.

      However, when the task run itself fails, it fails silently and it usually takes long time for somebody to notice that it's broken (typically you see very old cluster secrets on cluster).

      Approach (Required)

      Two approaches are possible

      1. Create cleanup-cloud-resources pipeline, similarly to uninstall-cluster. It should be possible to reuse existing task.
      2. Create a Slack step action and reference this step action inside cleanup-cloud-resources task using http resolver.

              Unassigned Unassigned
              ppitonak Pavol Pitoňák
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: