alexkvak / teamcity-slack

TeamCity Slack plugin
MIT License
124 stars 23 forks source link

Multiple slack teams #29

Open MadloptD opened 6 years ago

MadloptD commented 6 years ago

Hi. I have several slack teams for several projects in teamcity. How can i setup URL for each team per project?

alexkvak commented 6 years ago

Hi, there is no such possibility in current version. You have very interesting case. I guess you can setup separate TeamCity instances for each team.

O5ten commented 6 years ago

+1 on this. We have one teamcity, several builds per different workspaces in a huge organization. It's not feasible for us to maintain one instance per workspace.

O5ten commented 6 years ago

It should be possible to provide a list of tokens to build another list of available workspaces to post to when you are providing configuration on a teamcity project.

alexkvak commented 6 years ago

It sounds very good, but it's not so easy to implement while the backward capability should be preserved and data migration done.

O5ten commented 6 years ago

I'd be happy to be a tester for the feature if you need one.

O5ten commented 6 years ago

Also, i wanted to ask if you feel you have the time to add this? Otherwise i can attempt to do it myself and submit a PR if you do not. The risk of that is that might not be the most optimal solution. :)

whereisaaron commented 6 years ago

I am loving this plug-in but I hit the same limitation. In particular we would to be able to notify our team, and the client's team. So as @O5ten suggested, a list of API tokens per project.

O5ten commented 6 years ago

I made an attempt, but was ultimately was lost on Scalas syntax. Currently the sessions are created in a way that wasn't easily broken up into several, to me at least. So someone who's more versed in Scala could probably give it another go.

mklimek commented 5 years ago

I have multiple workspaces to notify as well.

Move all global Slack settings (like "OAuth Access Token") from Administration to "per project" configuration panel where you setup branch, template message etc seems to be quite easy solution.

It would also solve the problem with icon_url https://github.com/alexkvak/teamcity-slack/issues/49 since you could define multiple Bot Apps on Slack (thus upload different images for each).

selected-pixel-jameson commented 4 years ago

This would be a really nice feature to have. I'm surprised there aren't more people requesting this since it basically applies to any kind of software consulting company running TeamCity for their build server.