[JIRA] [workflow-plugin] (JENKINS-26912) 'build' workflow command ignores parameters, triggering default-only builds

2015-02-20 Thread jgl...@cloudbees.com (JIRA)















































Jesse Glick
 resolved  JENKINS-26912 as Not A Defect


build workflow command ignores parameters, triggering default-only builds
















JENKINS-26093 covers the task of making the snippet generator work properly for this step, as well as core changes to simplify the syntax. Currently you need to use, for example,


build job: 'My Test Job', parameters: [new hudson.model.StringParameterValue('version', 'master')]






Change By:


Jesse Glick
(20/Feb/15 10:12 PM)




Status:


Open
Resolved





Resolution:


NotADefect



























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







-- 
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] [workflow-plugin] (JENKINS-26912) 'build' workflow command ignores parameters, triggering default-only builds

2015-02-11 Thread jame...@gmail.com (JIRA)














































James VL
 created  JENKINS-26912


build workflow command ignores parameters, triggering default-only builds















Issue Type:


Bug



Assignee:


Jesse Glick



Components:


workflow-plugin



Created:


11/Feb/15 11:55 PM



Description:


Summary

It appears "Build a Job" in the Workflow DSL is not properly passing parameters to the jobs it builds.

Sample Code


build job: 'My Test Job', version: 'master'


Where 'My Test Job' is normal Jenkins job.

Expect to See

Jenkins execute the job named 'My Test Job', setting its expected parameter named 'version' to the value 'master'.

Actually See

'My Test Job' is run, but with whatever the default value is for 'version', not the value 'master'.

Further notes:

I tried various other formats of passing parameters to the build command (name, unnamed, key value list in a string...), but none worked. The snippet generator was not very helpful in trying to guess what to send.

The Snippet Generator says of parameters:

"parameters may be bound to a list of ParameterValues."

and generates sample code:


build 'My Test Job'


I would welcome clarification in the snippet builder on how to use it with jobs that take parameters. It does not demonstrate or describe that the job name must be passed as the 'job' parameter. 




Environment:


Jenkins 1.598 on Linux w/

Workflow 1.2




Project:


Jenkins



Priority:


Major



Reporter:


James VL

























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







-- 
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.