0
votes

How can I restrict automatically running dependent build configurations?

I have a pipeline:

  • Build
  • Stage
  • Release

Those are different configurations chained using snapshot dependencies. However, by default when a Teamcity configuration is run, it checks all the snapshot dependencies and then re-builds those which are not suitable.

Instead, for example, I want the Stage configuration to fail when no suitable Build snapshot dependency is found. (i.e. it should be impossible to run the Stage build without there first being a Build ready).

All I can find in Teamcity is configuration about how to handle situations where the dependency build fails, which is not what I need.

Thanks

1
If Build fails, do you want Stage to fail or just to not start? Is this solvable by selecting the 'Trigger after successful build only' in the Finished Build Trigger?dcbyers
If Build fails, I want the Stage not to be possible to be run at all. Which can be done (I think) by what Didier Aupest suggested below. Triggering the build will be done manually, by a responsible person.Martin Melka

1 Answers

0
votes

When you declare a new Snapshot dependency, inside the options you have a dropdownlist for "On failed dependency" Default value is: Run build, but add problem Instead, you can set: Make build failed to start, or Cancel build