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.

Comment actions Permalink

Yep, they are accessible via Dependencies Properties.


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.

Comment actions Permalink

So after some testing I figured it out.

All build configurations have unique buildTypeId.

for example:

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 =

now your build.xml can use it.


Please sign in to leave a comment.