evilchili created JENKINS-13768: ----------------------------------- Summary: default parameter values are ignored when triggering parameterized build from groovy post-build script Key: JENKINS-13768 URL: https://issues.jenkins-ci.org/browse/JENKINS-13768 Project: Jenkins Issue Type: Bug Components: parameterized-trigger Reporter: evilchili Assignee: huybrechts
Steps to reproduce: 1. create job Foo with two string parameters: MAJOR, with default value '1', MINOR, with default value '0' 2. create job Bar with a groovy post-build hook thus: {code} def params = [] params.push( new StringParameterValue( 'MINOR', 2 ) ) def foo = manager.hudson.getJob( 'Foo' ) foo.scheduleBuild( 2, new Cause.UpstreamCause( manager.build ), new ParametersAction( params ) ) {code} 3. build Bar Expected Result: Foo builds with parameter values MAJOR=1, MINOR=2 Actual Result: Foo build with parameter values MINOR=2 If MAJOR isn't specified in the parameter list when invoking the build, it should use the default value in Foo's configuration. Instead, the parameter isn't evaluated at all. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira