Need help with reading parameters passed from one jenkins to other

9 views
Skip to first unread message

GeekBad

unread,
Dec 1, 2014, 5:58:06 PM12/1/14
to jenkins...@googlegroups.com
Hey, 
 I am trying to pass parameters from one jenkins job to other using the "Parameterized Trigger Plugin" but am having troubles reading the parameters passed in my Junit.
Here is what i have job A passes a parameter to job B and i see that Job B has the right parameters being passed in "Parameterized Builds Report" but am not able to read the parameter in my java code. 
I am using Maven to build the project. 
I had tried reading through add following code 
                         <environmentVariables>
            <jenkins.special>${env.special}</jenkins.special>
       </environmentVariables>

and reading it as
String stest = System.getProperty("jenkins.special"); 

please let me know if i am doing something wrong or this can be achieved only by envInject plugin.


Thanks,


GeekBad

unread,
Dec 1, 2014, 6:09:46 PM12/1/14
to jenkins...@googlegroups.com
Fixed it.. so thanks. 
Reply all
Reply to author
Forward
0 new messages