Hi

I have a build job with 3 svn checkouts Jenkins gives me SVN_VERSION_1 
SVN_VERSION_2 etc it appears the be the last checked in value for my branch 
rather than svn revision. 
Why is this I want the value to mark my builds
 My work around is to do a svn info in the checked out directory in a bash 
window put the value in a file read the file in a groovy script and display 
in the build window.
Instead of just putting SVN_REVISION_2 in the groovy script.
Carl

bash
export SVN_REV_REPO=`svn info $WORKSPACE/svn_systest|grep Revision|awk '{ 
print $2 }'|tr -s " "`
echo "${SVN_REV_REPO}" > "${WORKSPACE}/svnversion"
groovy postbuild
manager.addShortText("SVN #" + 
manager.build.getParent().getWorkspace().child('svnversion').readToString() 
)

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/59602c79-ee6f-4532-a37e-89041b4170c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to