Snapshot dependencies - always rebuild
Hello,
We have a complex TeamCity build-chain with several modules (i.e. several source repositories) with dependencies (module A needs module B to be built).
For each module, we have a TeamCity configuration which retrieves the sources (VCS Git) and build them. And to express dependencies, we use snapshot dependencies (no artifacts dependencies at all).
Unfortunately, even though parameter "Do not run new build if there is a suitable one" is enabled, our snapshot builds are always restarted. So, each time a module in the chain is started (e.g. via a manual run), all the previous builds in the chain are rebuilt.
We try to understand why we have this behavior, but without success. We recreated a "dummy" configuration to try to reproduce the problem with less complexity, but it works perfectly fine.
Therefore, I would like to know if there are some logs that can be used to understand why TeamCity consider a build not suitable?
Thanks in advance,
Kind regards,
Guillaume
Please sign in to leave a comment.
Hi Guillaume,
The concept of "Suitable Build" is explained here: https://confluence.jetbrains.com/display/TCD18/Snapshot+Dependencies
In order to be considered suitable to not be rebuilt the builds have to meet the conditions mentioned in there. We have an issue in our tracker to log the decision: https://youtrack.jetbrains.com/issue/TW-37419