Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Globally configure Slack Webhook URL #9

Open
dirkschneemann opened this issue Feb 25, 2019 · 3 comments
Open

Globally configure Slack Webhook URL #9

dirkschneemann opened this issue Feb 25, 2019 · 3 comments
Assignees

Comments

@dirkschneemann
Copy link

It would be great if the Slack Webhook URL (which is unlikely to change from task to task) could be configured only once at some global location. Currently, everybody who sets up a new Slack task needs to know this URL which is not convenient.

@juhasipo
Copy link
Member

I'll add support for global plugin settings and add this setting there.

@juhasipo juhasipo self-assigned this Feb 27, 2019
@juhasipo
Copy link
Member

@dirkschneemann I didn't remember this but GoCD task plugins don't support the global plugin settings UI so this will have to implemented some other way,

However, there is one way to achieve this functionality using the current version. You can set the webhook URL as a an environment variable in an Environment or a Pipeline. E.g. create a variable named SLACK_WEBHOOK_URL in an Environment and then use $SLACK_WEBHOOK_URL as the Slack Task's Webhook URL.

It's not as convenient as a proper global setting but I hope this helps. I'll try to look at the global configuration in more detail later this weekend.

@dirkschneemann
Copy link
Author

Thanks, @juhasipo , I will try this in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants