Share data between two builds of the same build configuration
There is a task to measure performance. This task collects data for the current build and compares it with the previous one. It must fail if some performance drops would be detected.
For this purpose a build configuration was created whose the first build step collect data and exposes them as an artifact. Another step has to compare results of the current build with the previous one. In order to compare data with the previous build a dependency on itself was introduced into the build configuration. This construction works well if an initial build, providing initial data, exists.
But it is impossible to get initial build if this dependency is enabled.
Is there any way to check if a dependency is invalid then skip some steps.
Please sign in to leave a comment.
Hi Vitaly,
Conditional build steps are still not available, check our request here for it: https://youtrack.jetbrains.com/issue/TW-17939. The best option would be to separate the two parts of the build (the one that requires the artifact and the one which doesn't) into two different configs, run them separately tied by a snapshot dependency and have the part that requires the artifact fail when no such artifact exists, while the other can run independently.