You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A plugin for [TeamCity](http://www.jetbrains.com/teamcity/) to post notifications to [slack](https://slack.com/)
3
+
A plugin for [TeamCity](http://www.jetbrains.com/teamcity/) to post notifications to [Slack](https://slack.com/)
4
4
5
-
It works by registering as a server listener, and posts to slack on build events like successful builds (optionally also builds starting and failing)
5
+
It works by registering as a server listener, and posts to Slack on build events like successful builds (optionally also builds starting and failing)
6
6
7
-
#Build Plugin
7
+
#Build Plugin
8
8
9
9
Gradle is used to build. Wrapper is included in the project so you dont need to install it, just have java.
10
10
11
11
./gradlew buildZip
12
12
13
13
this will generate a zip file with the right meta data in the right folder structure at : `build/distributions/TCSlackNotifierPlugin-<version>.zip` you can also download a build from GitHubs versions section.
14
14
15
-
#Install Plugin
15
+
#Install Plugin
16
16
17
17
Copy the zip file into TeamCity plugin directory inside the data directory, usually `.BuildServer`
Add a new webhook integration. Make a note of the URL.
29
29
30
-
###In TeamCity
30
+
###In TeamCity
31
31
32
32
Edit the main config file, usually `.BuildServer/config/main-config.xml` and add an element like so:
33
33
@@ -45,13 +45,13 @@ Edit the main config file, usually `.BuildServer/config/main-config.xml` and add
45
45
46
46
You can set the attributes on slackNotifier element (postSuccessful,postFailed,postStarted) to decide that notifications you would like posted.
47
47
48
-
Set the **slackPostUrl** to point to the url provided on the Slack integration page for the incoming webhook you created. Change the logo url whatever you want or leave it out.
48
+
Set the `slackPostUrl` to point to the url provided on the Slack integration page for the incoming webhook you created. Change the logo url whatever you want or leave it out.
49
49
50
-
This by default will post all builds to slack. you can tweak these on a project level though
50
+
This by default will post all builds to Slack. You can tweak these on a project level though.
51
51
52
-
####Project Config (Optional)
52
+
####Project Config (Optional)
53
53
54
-
To change channel, change the slack logo used for that project or disable per project:
54
+
To change channel, change the Slack logo used for that project or disable per project:
55
55
56
56
Edit the plugin specific xml config, `plugin-settings.xml` probably somewhere inside `.BuildServer/config/projects/PROJECTNAME`
57
57
@@ -64,17 +64,17 @@ Edit the plugin specific xml config, `plugin-settings.xml` probably somewhere in
64
64
</settings>
65
65
```
66
66
67
-
#Note on TeamCity version support
67
+
#Note on TeamCity version support
68
68
69
69
I'm still using **TeamCity 7.1** , but a few tests on the free version of TeamCity 8 went fine, and it seems to work there also. Users have reported it working on version 9 also.
70
70
71
-
###Issues
71
+
###Issues
72
72
73
-
*all xml config - needs web ui extensions for updating settings from GUI. Considering it.
74
-
*channel can be changed per-project either by environmental variable (SLACK_CHANNEL (env var may be broken)) or by changing the project specific xml in the data directory. This could also use web ui extension UI for editing.
73
+
*All xml config - needs web ui extensions for updating settings from GUI. Considering it.
74
+
*Channel can be changed per-project either by environmental variable (SLACK_CHANNEL (env var may be broken)) or by changing the project specific xml in the data directory. This could also use web ui extension UI for editing.
75
75
* All or nothing notifications. By default, all builds are posted. It can be disabled per project, but not currently by build config.
0 commit comments