How to get all the VCS root info in a buildscript


As part of my build, I would like my buildscript to write to a file exactly which revision from which vcs root was used to create this build.  Like:

VCSROOT:  Trunk   TYPE:Git    URL: git://  CHANGE:ea0b89345bedaa9802342323
VCSROOT:  Documentation TYPE: SVN URL: svn://   CHANGE: r234223

Is there a way I can achieve this?

(Please note the builds I want to do this for have multiple vcs roots)

Thanks, Lucas

1 comment
Comment actions Permalink

Hello and sorry for delay.

If you want to make this automatically for each build, this can only be done with help of custom plugin. If you need this in one particular build only, you can use build.vcs.number.* parameters:


Please sign in to leave a comment.