How to get version number of the dependency build? Permanently deleted user Created August 11, 2011 18:43 I have a project that depends (artifact dependency) on to other projects.I need to get the build versions of these dependencies.Any advice?Thank you.
Yep, they are accessible via Dependencies Properties.
Michael
Thank you for the reply.
Is there any chance you can show an example?
I have Main code, dep A and dept B.
The Main code uses last build of dependencies, I need to get these versions to my build.xml file.
Any help is highly appreciated.
So after some testing I figured it out.
All build configurations have unique buildTypeId.
for example:
http://ushsvblds1_new/viewLog.html?buildId=1142&buildTypeId=bt41&tab=buildLog
The buildTypeId is bt41
In your build configuration, under 'Build Parameters", you can add env variable that will refer to the last build of the dependency.
env.dep.number = %dep.bt41.build.number%
now your build.xml can use it.