Override a parameter in parent build from dependency only when the dependency build is triggered

Answered

Build configuration A depends on B, but B is triggered conditionally. If B is triggered, it locks a Shared Resource and A should use the same. If B is not triggered, A should use a default value. How to achieve this?

0
1 comment

Hi,

 

Your scenario is a bit too abstract to be able to provide an appropriate answer. TeamCity currently does not admit conditionally triggering dependencies, they are always triggered. In the case where a suitable existing build is found, the dependency will be fulfilled by the existing build instead, but the dependency will still be there.

 

If your condition is more complex than that, you will need to create a custom script to run the triggering for you, and that custom script would probably need to set up the shared resources as well.

0

Please sign in to leave a comment.