How to have dependent build succeeded if dependency completed after retry

Answered

Hello,

I have a set of build tasks and the one triggering them all via snapshot dependency.

If all the dependency builds succeed, the parent build succeeds as well. If any of the dependency fails, the parent build fails.

Unfortunately some of the dependency builds are not stable enough by multiple environmental reasons. Sometimes they fail. All of them have retry triggers and at 99% of cases they succeed after retry.

But the issue is that the parent build does not take into account the dependency retry. Even if the retry succeeds, the parent build stays failed.

I tried to solve the issue by enabling the 'Put the newly triggered builds to the queue top' option in the retry trigger settings. So, the dependency retry is started prior to the parent build. But it does not help.

 

Is it possible to have the parent build succeeded if some dependencies succeeded after retry?

0
1 comment

Hello,

This is expected in your configuration: the underlying builds that are triggered by the retry triggers are not part of the build chain. These are standalone builds.

When working with build chains, all the triggering should come from the top build - it will trigger dependencies automatically. Instead of retrying individual build configurations, try re-triggering the whole build chain. Remove the retry triggers from the underlying builds and add a retry trigger to the 'head' build of your chain. If you configure the build chain to re-use suitable builds, successful builds from the chain will simply be re-used, and the failed builds will be executed. Such an approach will also decrease the total amount of triggers in your project, which is good for your TeamCity server.

0

Please sign in to leave a comment.