I want to be able to iterate through build parameters of all snapshot dependencies (dep.<btID>.<property name>) used in a build in a powershell script. Is there a way do discover the list of <btID>s? I do not want to hard code the IDs as they may change with time.
We are using SemVer release versioning for a product. When we promote an RC to released we label its commit and our tools then automatically bump the version on next build. That is fine. However the product uses ~20 components which are snapshot dependencies are are only released as part of the product. So we want to also label the source repos for each dependency at the same time ... but they have independent versioning so each will have a different label e.g: v2.3.4
So my question is about how to get info on each dependence such as repo name, commit ID, SemVer, so the script can do the labelling .... but without hardcoding the depency build IDs.