How to get version number of the dependency build?

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.

3 comments
Comment actions Permalink

Yep, they are accessible via Dependencies Properties.

Michael

0
Comment actions Permalink

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.

0
Comment actions Permalink

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.

0

Please sign in to leave a comment.