mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CI: Notify channel on drone yaml changes (#42428)
* Notify on drone yaml changes * Change secrets * Remove test notification * Fix typo
This commit is contained in:
committed by
GitHub
parent
95831e9be0
commit
54ea2ed766
@@ -12,14 +12,14 @@ wix_image = 'grafana/ci-wix:0.1.1'
|
||||
test_release_ver = 'v7.3.0-test'
|
||||
|
||||
|
||||
def slack_step(channel):
|
||||
def slack_step(channel, template, secret):
|
||||
return {
|
||||
'name': 'slack',
|
||||
'image': 'plugins/slack',
|
||||
'settings': {
|
||||
'webhook': from_secret('slack_webhook'),
|
||||
'webhook': from_secret(secret),
|
||||
'channel': channel,
|
||||
'template': 'Build {{build.number}} failed for commit: <https://github.com/{{repo.owner}}/{{repo.name}}/commit/{{build.commit}}|{{ truncate build.commit 8 }}>: {{build.link}}\nBranch: <https://github.com/{{ repo.owner }}/{{ repo.name }}/commits/{{ build.branch }}|{{ build.branch }}>\nAuthor: {{build.author}}',
|
||||
'template': template,
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user