Skip to content

Commit

Permalink
JENKINS-28374 add comment about issue
Browse files Browse the repository at this point in the history
  • Loading branch information
imod committed Nov 23, 2015
1 parent e08a465 commit 2f943a1
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -230,6 +230,7 @@ public ParameterValue createValue(StaplerRequest req, JSONObject jo) {
// as JSONArray: {"name":"HOSTN","value":["master","host2"]}
// as String from script: {"name":"HOSTN","value":"master"}
final String name = jo.getString("name");
// JENKINS-28374 also respect 'labels' to allow rebuilds via rebuild plugin
final Object joValue = jo.get("value") == null ? (jo.get("labels") == null ? jo.get("label") : jo.get("labels")) : jo.get("value");

List<String> nodes = new ArrayList<String>();
Expand Down

0 comments on commit 2f943a1

Please sign in to comment.