Thanks Nicolas.

I didn't think there was a way to do it, but thought maybe there was a better 
(more creative) solution than what I came up with. People are going to look at 
job X and wonder why there are two parameters (Y and Y_OVERRIDE). It would be 
really nice if Jenkins had the concept of "hidden parameters" :)

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of nicolas de loof
Sent: Friday, August 16, 2013 11:33 AM
To: jenkinsci-users@googlegroups.com
Subject: Re: Build Flow - dynamic parameter question

you can't. By nature, dynamic parameters are computer by the job to use them, 
can't be force to a "fixed" value by the invoker.

2013/8/16 Bob Bick <bb...@netjets.com<mailto:bb...@netjets.com>>
Hi,

A build flow job invokes job X that has a dynamic parameter Y. The build flow 
job also has the dynamic parameter Y that it passes to job X. Ideally, 
parameter Y from the build flow job should override the calculated dynamic 
parameter value for job X. Unfortunately, when the build flow job invokes job 
X, job X recalculates parameter Y.

Q. Is there a way to have job X use parameter Y? That is, I'd like the dynamic 
parameter script to check whether the value has already been set, and if so, 
then use that value.

Right now, to get this behavior to work, I am planning to create two parameters 
(Y and Y_OVERRIDE) for job X ... and then use Y_OVERRIDE. Any other ideas as to 
a better way to do this? This seems like an awful hack.

Dynamic parameter plugin doc:
https://wiki.jenkins-ci.org/display/JENKINS/Jenkins+Dynamic+Parameter+Plug-in

Thanks,
Bob

*** *** ***
This message contains information which may be confidential and privileged. 
Unless you are the addressee (or authorized to receive for the addressee), you 
may not use, copy or disclose to anyone the message or any information 
contained in the message. If you have received the message in error,  please 
advise the sender by reply e-mail and delete the message.
--
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 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users%2bunsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.

--
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 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
For more options, visit https://groups.google.com/groups/opt_out.

*** *** ***
This message contains information which may be confidential and privileged. 
Unless you are the addressee (or authorized to receive for the addressee), you 
may not use, copy or disclose to anyone the message or any information 
contained in the message. If you have received the message in error,  please 
advise the sender by reply e-mail and delete the message.

-- 
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 jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to