user2995794
user2995794

Reputation: 31

TeamCity: E-mail Notification to user which committed changes, that causes a build in the build chain to fail

I have a TeamCity project which includes 2 configurations: -BuildConfig1: Triggered by SVN changes -BuildConfig2: Triggeres by successful build of BuildConfig1

I need to send out notifications if BuildConfig2 fails. But only to users which has committed changes to BuildConfig1.

Is this possible?

Upvotes: 3

Views: 2020

Answers (3)

Vladimir Strugatsky
Vladimir Strugatsky

Reputation: 371

In BuildConfig2, go to Version Control Settings, then under Checkout Options there is a Display Option called "Show changes from snapshot dependencies".

Checking it apparently does not only change what's displayed, but also propagates notification settings from the build(s) that produced snapshot dependencies.

Upvotes: 2

Welsh
Welsh

Reputation: 5468

You may be able to create some sort of franken-build using the TeamCity REST API.

Have a build step corresponding to each of the full builds that will always execute after one of the builds runs. Then in the step 1 check if last execution of build A finished successfully and repeat for each additional build in the build chain.

Upvotes: 0

qwazer
qwazer

Reputation: 7521

http://confluence.jetbrains.com/display/TCD7/Subscribing+to+Notifications

Under Notification Conditions see 'Ignore failures not caused by my changes'

Upvotes: 0

Related Questions