Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[JENKINS-26093] Allow parameter values to be specified using standard…
… $class syntax.

Originally-Committed-As: 72860e91d39712e1beecdab61d42427a4402f294
  • Loading branch information
jglick committed Mar 3, 2015
1 parent 32e4663 commit a1b5def
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -101,11 +101,7 @@ public class SnippetizerTest {
BuildTriggerStep step = new BuildTriggerStep("downstream");
assertRoundTrip(step, "build 'downstream'");
step.setParameters(Arrays.asList(new StringParameterValue("branch", "default"), new BooleanParameterValue("correct", true)));
/* TODO figure out how to add support for ParameterValue without those having Descriptor’s yet
currently instantiate works but uninstantiate does not offer a FQN
(which does not matter in this case since BuildTriggerStep/config.jelly does not offer to bind parameters anyway)
assertRoundTrip(step, "build job: 'downstream', parameters: [[$class: 'hudson.model.StringParameterValue', name: 'branch', value: 'default'], [$class: 'hudson.model.BooleanParameterValue', name: 'correct', value: true]]");
*/
assertRoundTrip(step, "build job: 'downstream', parameters: [[$class: 'StringParameterValue', name: 'branch', value: 'default'], [$class: 'BooleanParameterValue', name: 'correct', value: true]]");
}

@Issue("JENKINS-25779")
Expand Down

0 comments on commit a1b5def

Please sign in to comment.