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
Copy file name to clipboardExpand all lines: README.markdown
+10-9Lines changed: 10 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,22 +10,22 @@ Gradle is used to build. Wrapper is included in the project so you dont need to
10
10
11
11
./gradlew buildZip
12
12
13
-
this will generate a zip file with the right meta data in the right folder structure at : `build/distributions/TCSlackNotifierPlugin-<version>.zip`
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
15
#Install Plugin
16
16
17
17
Copy the zip file into TeamCity plugin directory inside the data directory, usually `.BuildServer`
@@ -46,31 +45,33 @@ Edit the main config file, usually `.BuildServer/config/main-config.xml` and add
46
45
47
46
You can set the attributes on slackNotifier element (postSuccessful,postFailed,postStarted) to decide that notifications you would like posted.
48
47
49
-
Replace the web token with the token from slack. Change the postUrl also to point to the right slack team. The url can be found in the webhook integraton page, just remove the token from the end. Change the logo url whatever you want.
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.
50
49
51
50
This by default will post all builds to slack. you can tweak these on a project level though
52
51
53
52
####Project Config (Optional)
54
53
55
-
To change channel or disable per project:
54
+
To change channel, change the slack logo used for that project or disable per project:
56
55
57
56
Edit the plugin specific xml config, `plugin-settings.xml` probably somewhere inside `.BuildServer/config/projects/PROJECTNAME`
57
+
58
58
```
59
59
<settings>
60
60
<slackSettings enabled="true">
61
61
<channel>#blah</channel>
62
+
<logoUrl>http://host/somelogo.png</logoUrl>
62
63
</slackSettings>
63
64
</settings>
64
65
```
65
66
66
67
#Note on TeamCity version support
67
68
68
-
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.
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. Have yet to test on TeamCity 9 but whats the chance it doesn't work?
69
70
70
71
###Issues
71
72
72
73
* all xml config - needs web ui extensions for updating settings from GUI. Considering it.
73
-
* channel can be changed per-project either by environmental variable (SLACK_CHANNEL) or by changing the project specific xml in the data directory. This could also use web ui extension UI for editing.
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.
74
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