In my previous freestyle projects after checking out from multiple 
repositories I could use the environment variable ${SVN_REVISION_1} to get 
the revision number of the first repository.

If, however, I use the following groovy script in a workflow job, I get 
"null" back.
Am I doing something wrong here?

node('unix') {
checkout([$class: 'SubversionSCM', locations: [[local: 'dir1', remote: 
'http://subversion.xxx.com/svn/xxx/trunk']]])
checkout([$class: 'SubversionSCM', locations: [[local: 'dir2', remote: 
'http://subversion.xxx.com/svn/yyy/trunk']]])
sh "echo ${env.SVN_REVISION}" sh "echo ${env.SVN_REVISION_1}"
}

-- 
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/5250704e-82f0-4f7c-982a-08a50f760f84%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to