Hi,
On Stack overflow, I found a trick that works for me
svn 'svn://example.com/project'
bat(script: "svn info --show-item last-changed-revision . > tmp_svn")
def svnRevision = readFile('tmp_svn').trim()
Regards,
Le vendredi 10 mars 2017 15:48:26 UTC+1, Ioannis Cherouvim a écrit :
> Inside a jenkins 2 pipeline I do the following to checkout some code:
>
> > svn 'svn://example.com/project'
>
> On the console output I see:
>
> > Updating svn://example.com/project at revision '2017-03-10T16:43:00.322
> > +0200'
> > At revision 817
>
>
> How can I get the revision number (in this case "817") in a variable?
>
>
> thanks
>
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/860db76e-5a8d-4f07-8c33-af4f967a75e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.