1
votes

I've some trouble passing retrieving the SubVersion Revision to the jenkins pipeline..

I've configured a string parameter called Version where I type the first 3 pieces of the version (ex 1.12.0) I wish to pass to the Jenkins version plugin that value with the SVN revision

enter image description here

I've googled around and tried this approach but with no luck

Any suggestion ? I've tried as well to retrieve it from groovy script but with no luck

Thanks

1

1 Answers

0
votes

In pipeline code you can access the SubvesionSCM and get the revision number from a file. See How to get svn version number from checkout for use in dsl