Multiple triggers with AND condition

Hi,

I am trying to setup a build configuration to have a build trigger dependency on multiple build configuration steps. It seems that teamcity treats the multiple dependency conditions as an OR, where if any of them becomes true (build completes), it kicks off my build configuration that has the dependency on the multiple steps. Is there a way to have those conditions act as an AND, where only if all are complete, then my dependent build configuration will start?

Thanks

4 comments

Constantine,

There is no way for the dependent triggering act as AND, for the time being.

And this is almost the feature we are currently working on: specify dependencies of one build configuration on others. The dependency will cause all the sequence to be built on the same sources (until this moment all the builds always used the latest sources) and will also ensure the dependent builds are ready before starting the depending one.

You can describe your case in detail so that we can consider it when implementing the dependent builds functionality.

For the time being, you can try to workaround this by triggering a fake build that will wait until all the dependent builds are finished (e.g. by monitoring some marker files) and then trigger the main build.

--
Best regards,

Yegor Yarko
Project Manager
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Hi,

Thanks for the quick reply.

A situation that would expose the issue that I am having is as follows:

Say I have 4 build steps, a) app1 build code, b) app1 build config, c) app2 build code and d) app2 build config.

I have another 4 build steps (which actually are running distributions), a) app1 deploy code, b) app1 deploy config, c) app2 deploy code and d) app2 deploy config.

In my above scenario it makes no sense to deploy unless all my applications have built successfully. (all four steps).

I would therefore need a trigger (or other similar mechanism) that would wait for all the builds (which by the way were running parallel) to finish, so I can then run my deployment steps. (in parallel as well)

As a sidebar, but still important, a situation such as the above, where 'functions' such as build and deploy are considered as separate units of work, which may need to be started individually with or without dependencies (ie dependent deploy on success of build, or just run a deploy after a first unsuccessful attempt, because we ran out of HD space?). In such a case, the notion of a project as an individual unit of work which can be ran in both dependent and independent modes, would be a very useful feature to have, as it is now not possible to do so.

The importance of such features becomes evident if say you are using the tool to do builds and deployments for multiple applications as part of an overall build/deploy mechanism.

I hope this puts it in perspective for you. Please reach out for any clarifications.

Regards, Constantine

0

Constantine,

Thank you for the description.

We are moving into the complex dependencies schemes direction and one of the next EAP builds ( http://www.jetbrains.net/confluence/display/TW/TeamCity+EAP ) will have dependencies feature I mentioned in my previous post. We would appreciate if you can participate in the EAP then and let us know what features are missing so that we can address that before the release.

--
Best regards,

Yegor Yarko
Project Manager
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0

Does Teamcity build can have multiple triggers that starts building if anyone of them goes true?

Eg:

I have build A and B

I need a TestBuild that has 2 FinishBuild triggers of Build A and Build B.

if build A finishes a successful build, my Testbuild need not wait for Build B, but just kicks off..

Is this feature available in TC Version 10.0.4?

0

Please sign in to leave a comment.