From b718e878367dc5429ae1b357d20af695f02a95ad Mon Sep 17 00:00:00 2001 From: Jes Struck Date: Thu, 21 Jun 2018 17:35:14 +0200 Subject: [PATCH] JENKINS-34617 Adding @DataBoundConstructor to ExtendedChoiceParameterDefinition as initial work --- .gitignore | 4 +++- pom.xml | 9 ++++++++- .../ExtendedChoiceParameterDefinition.java | 2 ++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 3f29f5da..7e5d5dd2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ +.idea/* +*.iml /target/ -/work/ \ No newline at end of file +/work/ diff --git a/pom.xml b/pom.xml index 2941c27a..7cf2f085 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ org.jenkins-ci.plugins plugin - 2.3 + 3.15 @@ -14,6 +14,13 @@ Extended Choice Parameter Plug-In http://wiki.jenkins-ci.org/display/JENKINS/Extended+Choice+Parameter+plugin + + + 2.60.3 + 8 + + vimil diff --git a/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java b/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java index 86ed1603..81976e9d 100644 --- a/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java +++ b/src/main/java/com/cwctravel/hudson/plugins/extended_choice_parameter/ExtendedChoiceParameterDefinition.java @@ -54,6 +54,7 @@ import org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedClasspathException; import org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedUsageException; import org.jenkinsci.plugins.scriptsecurity.scripts.languages.GroovyLanguage; +import org.kohsuke.stapler.DataBoundConstructor; import org.kohsuke.stapler.QueryParameter; import org.kohsuke.stapler.Stapler; import org.kohsuke.stapler.StaplerRequest; @@ -433,6 +434,7 @@ else if(jsonParameterConfigJavascriptSourceJSON.getInt("value") == 1) { private String projectName; //@formatter:off + @DataBoundConstructor public ExtendedChoiceParameterDefinition(String name, String type, String value,