From 27ad970c2bf9146c0faff32421e8bff1cc39aa16 Mon Sep 17 00:00:00 2001 From: Dimitris Sotirakis Date: Wed, 2 Jun 2021 09:49:42 +0300 Subject: [PATCH] Chore: Make drone failed nightly checks send slack messages to #grafana-backend (#35076) --- .drone.yml | 2 +- scripts/job.star | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 02f9b8f589f..670c3041f61 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3466,7 +3466,7 @@ steps: channel: grafana-backend template: "Nightly docker image scan job for {{repo.name}} failed: {{build.link}}" webhook: - from_secret: slack_webhook + from_secret: slack_webhook_backend when: status: - failure diff --git a/scripts/job.star b/scripts/job.star index 0d9e721ed9d..e1088c5ea44 100644 --- a/scripts/job.star +++ b/scripts/job.star @@ -14,7 +14,7 @@ def cronjobs(edition): 'os': 'linux', 'arch': 'amd64', } - steps=[ + steps=[ scan_docker_image_unkown_low_medium_vulnerabilities_step(edition), scan_docker_image_high_critical_vulnerabilities_step(edition), slack_job_failed_step('grafana-backend'), @@ -59,7 +59,7 @@ def slack_job_failed_step(channel): 'name': 'slack-notify-failure', 'image': 'plugins/slack', 'settings': { - 'webhook': from_secret('slack_webhook'), + 'webhook': from_secret('slack_webhook_backend'), 'channel': channel, 'template': 'Nightly docker image scan job for {{repo.name}} failed: {{build.link}}', },