• Stars
    star
    311
  • Rank 134,521 (Top 3 %)
  • Language
    Java
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Posts build notifications to Slack

tcSlackBuildNotifier

Deprecation notice

This project is no longer actively maintained - JetBrains has added Slack functionality to TeamCity 2020.1

Join the chat at https://gitter.im/PeteGoo/tcSlackBuildNotifier

Overview

Posts Build Status to Slack

Sample Notification Sample Notification

Tested on TeamCity 8.1.2 (build 29993), 9.1 (build 36973)

Installation

Head over to the releases section and get the zip labelled tcSlackNotifierPlugin.zip from there (do not download the one on this page). Copy the zip file into your TeamCity plugins directory.

You will need to restart the TeamCity service before you can configure the plugin.

Configuration

Once you have installed the plugin and restarted head on over to the Admin page and configure your Slack settings.

Admin Page Configuration

  • your default channel is the channel with the # in front of it e.g. #general.
  • your team name is the team e.g. mycoolteam NOT mycoolteam.slack.com.
  • The user token is available when you got to https://api.slack.com/web while logged in to your Slack instance. Under "authentication" you should see a token displayed like below. Alternatively you can use the full URL from the Incoming Webhooks integration in the API token field. The webhooks integration approach is sometimes more preferable as the token is not tied to a user account.

Sample Auth Token

Usage

From the Slack tab on the project or build page (not the Build Configuration Settings page), add a new Slack Notification and you're away!

Sample Build Configuration

  • Remember to put the # in front of the channel name if applicable.

Mentions

In order to receive mentions and direct messages from the notifier you must go to your profile page in TeamCity and tell it your Slack username (no need to include the @). Once you have done this you can be mentioned on failed builds. You can also subscribe to notifications on your profile page.

Contribution

In order to contribute to the project you first need to checkout the project sources. This project uses the TeamCity Plugin SDK for development.

In order to test the plugin simply run the following command with java and mvn installed:

mvn package tc-sdk:start

By default it will install TeamCity in the version listed in the property in the root pom.xml. However you can overwrite this setting by using the -DteamcityVersion=10.0 switch.

Other available commands can be found here.

More Repositories

1

Pushqa

An HTTP push messaging library with oData and Linq subscriptions for server side filtering of reactive events
JavaScript
51
star
2

packer-win-aws

A Packer template for provisioning a windows instance on EC2 using Powershell over WinRM / https
PowerShell
49
star
3

NHibernate.QueryService

Investigation into an Nhibernate OData query only service
JavaScript
18
star
4

Workflow.EmailApprovalSample

A Windows Workflow Foundation email approval sample from the blog entry http://blog.petegoo.com/index.php/2010/08/22/workflow-4-email-approval-sample/
C#
14
star
5

ProjectDependencyVisualiser

Creates a map of dependencies between csproj project files inside a given directory.
C#
6
star
6

WebApiContext.Sample

Shows how to create a DataServiceContext equivalent for Web Api queryable services
JavaScript
5
star
7

Workflow-Service-Tracking-Viewer

A web based viewer for viewing live tracking information from Workflow Foundation services
JavaScript
5
star
8

concourse-codebuild-resource

Allows Concourse to interact with AWS Codebuild projects
Shell
4
star
9

Presentations.IntroductionToRx

Presentation content from an IntroductionToRx
C#
3
star
10

Demo.EnterpriseWorkflow

A demo that shows how to create an enterprise workflow solution
JavaScript
2
star
11

docker-tutorial

JavaScript
2
star
12

Presentations.SignalR

Presentation on SignalR
JavaScript
2
star
13

WindowsStoreSamples

Samples for creating apps targeting the Windows Store and WinRT
C#
2
star
14

Workflow45.ActivityFuncExpressionBug.Sample

Demonstrates a breaking change in behavior when .Net 4.5 is installed and an activity designer is depending on autocomplete support for VB Expressions in an Expression Text Box bound to an ActivityFunc
C#
1
star
15

haproxy-exp

A docker compose setup that puts an HAProxy in front of 2 sample sites.
1
star
16

UnitTestingHttpClient

Just for myself, how to unit test HttpClient
C#
1
star
17

Resharper.Xaml.Templates

Resharper templates for XAML
1
star
18

test-include-paths

Test that included paths are found
1
star
19

SignalR.Owin.Relay

An evil thing indeed. A web api server that relays incoming requests through SignalR to connected clients using an Owin Context. Useful for web hook relays.
JavaScript
1
star
20

TechEd2010_Workflow

Repository for tech ed stuff
1
star
21

ssm-watch

Provides a command line proxy that turns SSM parameter store entries into environment variables that can be consumed by the specified child process
Go
1
star
22

Pushqa.Samples

Samples for the Pushqa queryable http push messaging library
1
star
23

curated-ship-gifs

Get a random shipping related gif that won't freak out the normals
JavaScript
1
star
24

MicroIoc

MicroIoc is an ultra lightweight IOC container specifically targeted at the Windows Phone.
C#
1
star