-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
Platform: All, OS: All
I'm using "Parameterized Build"
(http://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Build) and hudson
eclipse plugin (http://code.google.com/p/hudson-eclipse/). It would be good to
get the list of declared parameters and default values from hudson
(http://code.google.com/p/hudson-eclipse/issues/detail?id=31#c1).
With URL "http://server/job/myjob/buildParameters" hudson should return simple
page with parameters and assigned values:
...
Param1=value1
Param2=
Param3=value3
...
This page can be parsed with a script or eclipse plugin. So it is possible to
schedule build with default parameters or changed parameters by user:
http://server/job/myjob/buildWithParameters?Param1=value1?Param2=user_value2?Param3=user_value3
If the build is not parametrized, hudson should return an empty page and normal
build can be started:
http://server/job/myjob/build
Andre
- relates to
-
JENKINS-63786 Expose live choices to the remote API (for programmatic consumption)
-
- Fixed but Unreleased
-
[JENKINS-3703] Parameterized Build: get the list of declared parameters and default values
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Status | Original: Resolved [ 5 ] | New: Verified [ 10000 ] |
Status | Original: Verified [ 10000 ] | New: Closed [ 6 ] |
Component/s | New: core [ 15593 ] | |
Component/s | Original: parameters [ 15594 ] |
Workflow | Original: JNJira [ 133776 ] | New: JNJira + In-Review [ 202398 ] |
I tried api/xml interface and it is possible to get list of declared parameters
from build (e.g. lastBuild, see hudson-eclipse implementation:
http://code.google.com/p/hudson-eclipse/issues/detail?id=36). But the values are
from build and not default values. It would be good to get the list with default
values from job directly.