I created a pipeline job and would like to get the svn version number to enable further downstream processing in a call to a shell script. I am using a pipeline script simi
this code work for me in jenkins pipeline:
String url = 'svn+ssh:...' SVN_REVISION_IN = sh returnStdout: true, script: 'svn info --show-item last-changed-revision ' + url currentBuild.displayName = "Rev: ${SVN_REVISION_IN}"