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,