Community
Participate
Working Groups
The /job/action and /job/parameter tags of the XML output of a Hudson job have a partial description of required build parameters: <parameterDefinition> <defaultParameterValue> <value>INFO</value> </defaultParameterValue> <description/> <name>BUCKMINSTER_LOGLEVEL</name> <choice>INFO</choice> <choice>WARNING</choice> <choice>ERROR</choice> <choice>DEBUG</choice> </parameterDefinition> The only two things that are missing are the parameter types and for Run Parameter the project name. It seems that it would be straight forward to include that. A full description of parameters is only availalable from the config.xml but that may not be readable by all users and requires a separate request, e.g. https://build.eclipse.org/hudson/job/emf-cdo-integration/config.xml : <parameterDefinitions> <hudson.model.ChoiceParameterDefinition> <name>BUCKMINSTER_LOGLEVEL</name> <description/> <choices class="java.util.Arrays$ArrayList"> <a class="string-array"> <string>INFO</string> <string>WARNING</string> <string>ERROR</string> <string>DEBUG</string> </a> </choices> </hudson.model.ChoiceParameterDefinition> <hudson.model.RunParameterDefinition> <name>Run Parameter</name> <description>Run Parameter Description.</description> <projectName>test-ant</projectName> </hudson.model.RunParameterDefinition> </parameterDefinitions>
I added these parameters to the job API in Hudson Core. See: HUDSON-8133: Add parameter definition type and job name to job API http://issues.hudson-ci.org/browse/HUDSON-8133
Thanks Lucas! I'll schedule this for the next release to consume the API changes.
Parameters are now parsed from the action list of the job. The job's config.xml is not accessed any longer.
Created attachment 210163 [details] mylyn/context/zip