[JIRA] (JENKINS-13768) default parameter values are ignored when triggering parameterized build from groovy post-build script

2017-03-07 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick commented on  JENKINS-13768  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: default parameter values are ignored when triggering parameterized build from groovy post-build script   
 

  
 
 
 
 

 
 Core is behaving as designed. If the Groovy Postbuild plugin wishes to offer a convenience method to build another job with with some parameters set, it can do so. That would duplicate functionality already available in Pipeline, of course.  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-13768) default parameter values are ignored when triggering parameterized build from groovy post-build script

2017-03-07 Thread jgl...@cloudbees.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Jesse Glick assigned an issue to wolfs  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-13768  
 
 
  default parameter values are ignored when triggering parameterized build from groovy post-build script   
 

  
 
 
 
 

 
Change By: 
 Jesse Glick  
 
 
Component/s: 
 groovy-postbuild-plugin  
 
 
Component/s: 
 core  
 
 
Assignee: 
 wolfs  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-13768) default parameter values are ignored when triggering parameterized build from groovy post-build script

2017-03-07 Thread jonathanwo...@protonmail.ch (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 jon wolfe commented on  JENKINS-13768  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: default parameter values are ignored when triggering parameterized build from groovy post-build script   
 

  
 
 
 
 

 
 +1 This is an impediment to using Groovy and feels unnatural.  For example, if I create a parameter which is not configured in the build, it does not appear as an ENV var, so the creation of parameters does affect your groovy code, but the choice of defaults does not. For anyone in need of a workaround, the following can set the defaults in your groovy code: 

 

String jobName;targetJob = myFolder.getItem(jobName);
params = [];
for (ParameterDefinition paramDefinition : targetJob.getProperty(ParametersDefinitionProperty.class).getParameterDefinitions()) \{
params += paramDefinition.getDefaultParameterValue();
\}
paramsAction = new hudson.model.ParametersAction(params)
...
 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-13768) default parameter values are ignored when triggering parameterized build from groovy post-build script

2016-07-27 Thread hwdegr...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Rik de Groot updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-13768  
 
 
  default parameter values are ignored when triggering parameterized build from groovy post-build script   
 

  
 
 
 
 

 
Change By: 
 Rik de Groot  
 
 
Priority: 
 Major Blocker  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-13768) default parameter values are ignored when triggering parameterized build from groovy post-build script

2012-09-03 Thread cjo9...@java.net (JIRA)














































cjo9900
 commented on  JENKINS-13768


default parameter values are ignored when triggering parameterized build from groovy post-build script















Pull request for a potential fix submitted

https://github.com/jenkinsci/jenkins/pull/553



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira






[JIRA] (JENKINS-13768) default parameter values are ignored when triggering parameterized build from groovy post-build script

2012-05-14 Thread evilch...@java.net (JIRA)
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