Skip to content
This repository has been archived by the owner on Aug 7, 2019. It is now read-only.
/ slackcity Public archive

Build notifications from TeamCity to Slack

License

Notifications You must be signed in to change notification settings

neueda/slackcity

Repository files navigation

SlackCity - build notifications without plugins

Docker Automated buil license

Quickstart

docker run -d \
      -e TC_HOST=your.tc.host \
      -e TC_PROJECT=ProjectName \
      -e TC_USER=teamcity-username \
      -e TC_PASSWORD=teamcity-password \
      -e SLACK_TOKEN=slack-oauth-access-token \
      -e SLACK_CHANNEL="#yourchannel" \
      neueda/slackcity

Usage

First, create your own docker-compose file from distribution:

cp docker-compose.dist.yml docker-compose.yml

Next, set proper environment variable values. Variables with "*" are required.

Env var Value
TC_HOST* your.tc.host
TC_PROJECT* ProjectName
TC_USER* teamcity-username
TC_PASSWORD* teamcity-password
SLACK_TOKEN* slack-oauth-access-token
SLACK_CHANNEL* #yourchannel
RELEASE_ARTIFACT packaged-binaries.zip
BUILD_WHITELIST Build1,Build2
DISPLAY_IGNORED_TESTS false
OMIT_TESTS_IF_PASSED true
TEST_REPORT_ARTIFACT build-reports.zip
TEST_PACKAGE com.myproject.module.tests
OMIT_COMMITS_IF_NONE true
GIT_PLATFORM github or bitbucket

Finally, run SlackCity and enjoy!

docker-compose up -d