From d28e365f74bc6fee75bb53d9c4504845b5179ea3 Mon Sep 17 00:00:00 2001 From: Dimitris Sotirakis Date: Tue, 17 Oct 2023 12:12:02 +0300 Subject: [PATCH] Slack notifications: Remove CI changes notifications from the `grafana-delivery` channel (#76671) Remove notification from the grafana-delivery channel --- .drone.yml | 34 +--------------------------------- scripts/drone/events/main.star | 26 -------------------------- scripts/drone/utils/utils.star | 1 - 3 files changed, 1 insertion(+), 60 deletions(-) diff --git a/.drone.yml b/.drone.yml index b1127562195..ac8adce5d26 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2332,38 +2332,6 @@ volumes: path: //./pipe/docker_engine/ name: docker --- -clone: - retries: 3 -depends_on: [] -kind: pipeline -name: notify-drone-changes -platform: - arch: amd64 - os: linux -steps: -- image: plugins/slack - name: slack - settings: - channel: slack-webhooks-test - template: "`.drone.yml` and `starlark` files have been changed on the OSS repo, - by: {{build.author}}. \nBranch: \nCommit hash: " - webhook: - from_secret: drone-changes-webhook -trigger: - branch: main - event: - - push - paths: - exclude: - - exclude - include: - - .drone.yml - repo: - - grafana/grafana -type: docker ---- clone: retries: 3 depends_on: @@ -4630,6 +4598,6 @@ kind: secret name: gcr_credentials --- kind: signature -hmac: 8713a4d7924e053d6b27acf7beec75ab6c1a85dc279f19c1819f989f7b015861 +hmac: ff105572d451a06880931bc5d3abdb86e50161eb84091e09118d9bf6a229e39b ... diff --git a/scripts/drone/events/main.star b/scripts/drone/events/main.star index 9f20d886481..ee47392ee5c 100644 --- a/scripts/drone/events/main.star +++ b/scripts/drone/events/main.star @@ -41,7 +41,6 @@ load( ) load( "scripts/drone/utils/utils.star", - "drone_change_template", "failure_template", "notify_pipeline", ) @@ -65,24 +64,6 @@ trigger = { } def main_pipelines(): - drone_change_trigger = { - "event": [ - "push", - ], - "branch": "main", - "repo": [ - "grafana/grafana", - ], - "paths": { - "include": [ - ".drone.yml", - ], - "exclude": [ - "exclude", - ], - }, - } - pipelines = [ docs_pipelines(ver_mode, trigger_docs_main()), test_frontend(trigger, ver_mode), @@ -92,13 +73,6 @@ def main_pipelines(): build_e2e(trigger, ver_mode), integration_tests(trigger, prefix = ver_mode, ver_mode = ver_mode), windows(trigger, ver_mode = ver_mode), - notify_pipeline( - name = "notify-drone-changes", - slack_channel = "slack-webhooks-test", - trigger = drone_change_trigger, - template = drone_change_template, - secret = "drone-changes-webhook", - ), enterprise_downstream_pipeline(), notify_pipeline( name = "main-notify", diff --git a/scripts/drone/utils/utils.star b/scripts/drone/utils/utils.star index 82cc0dca592..aea832018cf 100644 --- a/scripts/drone/utils/utils.star +++ b/scripts/drone/utils/utils.star @@ -9,7 +9,6 @@ load( load("scripts/drone/vault.star", "pull_secret") failure_template = "Build {{build.number}} failed for commit: : {{build.link}}\nBranch: \nAuthor: {{build.author}}" -drone_change_template = "`.drone.yml` and `starlark` files have been changed on the OSS repo, by: {{build.author}}. \nBranch: \nCommit hash: " def pipeline( name,