Prevent Build Config from running if a snapshot-dependency is on failure

Hello TeamCity experts

if a snapshot-dependency of a build config is red, an auto-retry is launched on that dependency.
Any idea on how to avoid this ?

Regards

3 comments
Comment actions Permalink

Hello,

When configuring snapshot dependency you can specify the following options:

On failed dependency:                 Run build, but add problem                Run build, do not add problem                Make build failed to start                Cancel build             

On failed to start/canceled dependency:                 Run build, but add problem                Run build, do not add problem                Make build failed to start                Cancel build             

Will they help in your case? If not, then please describe your use case in more details.

0
Comment actions Permalink

Hi Alina,

I can't find those options when configuring the snapshot depdendency.

(I'm using Teamcity 8.1.5)

Regards

0
Comment actions Permalink

The option that I mentioned are available since 9.0.
There is the option "Run this build if dependency has failed" in TC 8.1.5. Please uncheck it if you do not want dependant build to start if dependency has failed.
BTW, we would recommend to upgrade to the latest TeamCity version (9.0.5 as of now) to get access to all the recent bug fixes and lots of new features.

0

Please sign in to leave a comment.