It behaves like the internal APIs do, not enforcing anything on parameters being passed to builds -- which means defined parameters may not be set, and undefined parameters may be set.
Which is probably the wrong approach for a user-facing script DSL. On 11.09.2015, at 06:13, Michael Neale <[email protected]> wrote: > Eric, this sounds like a bug, not a feature missing (or are they the same > thing ? ;), worth opening a ticket for? > > On Thursday, September 10, 2015 at 10:12:43 PM UTC+10, Eric Engel wrote: > Hi, > > > I have this scenario: > > > Job X with default Parameters A=1, B=2 and C=3. Workflow Job Y calls Job X > with a build step: > > > >build job: 'X', propagate: false, parameters: [new > >hudson.model.StringParameterValue('A', '2'), new > >hudson.model.StringParameterValue('B', '3')] > > > What happens: Job X is called only with parameters A and B. Parameter C is > missing. The job fails. > > What I expect: Job X is called with parameter A and B. Parameter C > automatically gets the default value. > > > Is there a flag or other easy way to keep default parameters if no parameter > is given by the build step? > > Ideally I do not want to include all the default parameters into the workflow > script. > > > Regards > > Eric > > > -- > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/864e409e-0535-415e-a5c8-0753262e3b9c%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6CCAB449-0E10-467F-B4D1-F0DD9B0F7338%40beckweb.net. For more options, visit https://groups.google.com/d/optout.
