Use the parameterized build plugin (for the unit-tests job) and setup a string variable called MYSVN_REV (SVN_REVISION is a 'built-in'). Pass the variable into the build from the flow DSL like you show above. Then, in the unit-tests job config use MYSVN_REV (it's an environment variable) in the Build Name Setter plugin.
Ola On Monday, August 20, 2012 8:00:23 PM UTC+2, Tomek Kaczanowski wrote: > > Hi All, > > any hints? > > -- > Regards, > Tomek Kaczanowski > > On 13 Sie, 17:45, Tomek Kaczanowski <kaczanowski.to...@gmail.com> > wrote: > > Hi All, > > > > could someone post an example on how to read parameters passed from > > one job to another using Build Flow plugin? Plugin documentationhttps:// > wiki.jenkins-ci.org/display/JENKINS/Build+Flow+Plugingives > > information on how to put a parameter to the job, but does not show > > how to use them there. > > > > The scenario I'm trying to implement is that: > > a) job "compile" checks sources from SVN and compiles things: > > b = build( "compile" ) > > b) flow job passes this value to another job, like this: > > svn_rev = b.build.properties.environment['SVN_REVISION'] > > bUnit = build( "unit-tests" , svn_revision: svn_rev) > > c) job "unit-tests" should use this value in setting build name > (usinghttps://wiki.jenkins-ci.org/display/JENKINS/Build+Name+Setter+Plugin), > > > however I can't figure out how to do it. Can't seem to be able to > > access svn_revision, from "unit-tests" job. > > > > Could someone enlighten me? I feel like missing something obvious. > > > > -- > > Regards, > > Tomek Kaczanowski >