The only way that I can think of doing this would be to update your build 
scripts to look for these environment variables so that they are passed 
into the JVM.  Otherwise, you would have to call the java program from a 
second build step outside of your ANT script.

On Monday, December 2, 2013 12:55:16 PM UTC-5, stephenc wrote:
>
> I am creating a Parameterized build where the Parameter is of type 
> "Choice" and the Parameter Name is "testName".
> Choice of values such as "bigTest"  "smallTest"  "medTest" 
>
> I want to pass the value as a JVM argument.
> For example if they select the value of "bigTest" I want to set JVM 
> argument as   -DtestName=bigTest
>
> The reason is that when the user kicks off the build I want them to have 
> the option of which parameter to use.
>
> I would rather not modify the ANT script running this to set an 
> Environment variable if Jenkins can do it for me.
>
> Is this possible?
>
> thanks-
>

-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to