How to use two artifact dependencies of the same build configuration
We have a build configuration that should receive artifacts from 2 other builds (from the same type) and run some comparison on them.
The way we'd like to set it up:
- Create a new configuration for the comparison (CompareBuild)
- Have CompareBuild depend (using artifact dependencies) on BuildConfiguration (2 separate dependencies)
The build configuration BuildConfiguration exposes different parameters such as %build.filename% which i need to access from the comparison build.
My problem is that there's no way to treat both dependencies of the same build configuration differently, e.g: the %dep.id.build.filename% syntax does not take into account 2 dependencies of the same id, so i cannot access those builds' parameters differently.
ideally i would like to do something like - %dep.id.1.build.filename% and %dep.id.2.build.filename% or something similar, but from what i saw its not possible.
Is there any way to work around this ?
Please sign in to leave a comment.
Hello Lior,
The only workaround I can think of is to use the REST API to access the build parameters of the dependency builds. You would need to fetch builds that are artifact dependencies of the given build first, then retrieve their build parameters:
A quick start guide on the REST API is available here.
Please let me know if this helps.