I hope I can explain this clearly enough the first time around.

I have a parameterized build.

Under "This build is parameterized", I have added three choices:

TEST_ARGS, which accepts a string
TEST_GROUP_A, which is a "choice"
TEST_GROUP_B, which is also a "choice"

I have these broken out for clarity.

In the BUILD section the first thing I do is:

export TEST_ARGS="${TEST_ARGS} ${TEST_GROUP_A,} ${TEST_GROUP_B}"

This, in theory, puts the entirety of "TEST_ARGS" into the shell as an 
environment variable.

Next, I have a job trigger; however, that job is not getting the full string.  
Only the original TEST_ARGS string that the user typed into the first 
parameter.  I have "Current Build Parameters" selected.  I have also tried to 
add "Predefined Parameters" and define TEST_ARGS=$TEST_ARGS, since it says I 
can use "build parameters and/or environment variables."

Either way, I can only get the original TEST_ARGS string to be passed all the 
way through.

Any suggestions?

I have these split out because parameters 2 and 3 are optional and to make 
things more clear for my users.  However, I have muddied the waters for 
Jenkins, or myself.

-silver

-- 
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/d/optout.

Reply via email to