diff --git a/.tekton/scanner-build.yaml b/.tekton/scanner-build.yaml index 70765fc46..bd7df5fb7 100644 --- a/.tekton/scanner-build.yaml +++ b/.tekton/scanner-build.yaml @@ -80,7 +80,9 @@ spec: # Multiarch builds sometimes make the pipeline timeout after 1h. timeouts: - pipeline: 1h30m0s + tasks: 1h30m + finally: 10m + pipeline: 1h40m pipelineRef: name: scanner-component-pipeline diff --git a/.tekton/scanner-component-pipeline.yaml b/.tekton/scanner-component-pipeline.yaml index 71598672d..b1624725a 100644 --- a/.tekton/scanner-component-pipeline.yaml +++ b/.tekton/scanner-component-pipeline.yaml @@ -6,6 +6,26 @@ metadata: spec: finally: + - name: slack-notification + params: + - name: message + value: ':x: `{{event_type}}` pipeline for (`$(params.output-image-repo)`, revision <$(params.git-url)/commit/$(params.revision)|$(params.revision)>) has failed.' + - name: key-name + value: 'acs-konflux-notifications' + when: + # Run when any task has Failed + - input: $(tasks.status) + operator: in + values: ["Failed"] + taskRef: + params: + - name: name + value: slack-webhook-notification + - name: bundle + value: quay.io/konflux-ci/tekton-catalog/task-slack-webhook-notification:0.1@sha256:0dfdfd87a8716ff9c20ae3325eff9a5d52ee9c708959c1e93eaedc852621a4d5 + - name: kind + value: task + resolver: bundles - name: show-sbom params: - name: IMAGE_URL diff --git a/.tekton/scanner-db-build.yaml b/.tekton/scanner-db-build.yaml index 989b12224..9f047c6bd 100644 --- a/.tekton/scanner-db-build.yaml +++ b/.tekton/scanner-db-build.yaml @@ -69,5 +69,11 @@ spec: requests: cpu: 1 + timeouts: + tasks: 1h + finally: 10m + pipeline: 1h10m + + pipelineRef: name: scanner-component-pipeline diff --git a/.tekton/scanner-db-slim-build.yaml b/.tekton/scanner-db-slim-build.yaml index 26ec97b14..7514fae80 100644 --- a/.tekton/scanner-db-slim-build.yaml +++ b/.tekton/scanner-db-slim-build.yaml @@ -69,5 +69,10 @@ spec: requests: cpu: 1 + timeouts: + tasks: 1h + finally: 10m + pipeline: 1h10m + pipelineRef: name: scanner-component-pipeline diff --git a/.tekton/scanner-slim-build.yaml b/.tekton/scanner-slim-build.yaml index c02a6b2dd..1b26bfe10 100644 --- a/.tekton/scanner-slim-build.yaml +++ b/.tekton/scanner-slim-build.yaml @@ -80,7 +80,9 @@ spec: # Multiarch builds sometimes make the pipeline timeout after 1h. timeouts: - pipeline: 1h30m0s + tasks: 1h30m + finally: 10m + pipeline: 1h40m pipelineRef: name: scanner-component-pipeline