Skip to content

Commit

Permalink
JENKINS-34617 Adding @DataBoundConstructor to ExtendedChoiceParameter…
Browse files Browse the repository at this point in the history
…Definition as initial work (#22)
  • Loading branch information
jesstruck authored and vimil committed Jul 18, 2018
1 parent 93faf05 commit a5c9f6f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
.idea/*
*.iml
/target/
/work/
/work/
9 changes: 8 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>plugin</artifactId>
<version>2.3</version>
<version>3.15</version>
<!-- which version of Hudson is this plugin built against? -->
<relativePath />
</parent>
Expand All @@ -14,6 +14,13 @@
<name>Extended Choice Parameter Plug-In</name>
<url>http://wiki.jenkins-ci.org/display/JENKINS/Extended+Choice+Parameter+plugin</url>

<properties>
<!--jenkins-core.version>2.127-20180610.103314-1</jenkins-core.version>
<jenkins-war.version>2.127-20180610.103343-1</jenkins-war.version-->
<jenkins.version>2.60.3</jenkins.version>
<java.level>8</java.level>
</properties>

<developers>
<developer>
<id>vimil</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -433,6 +434,7 @@ else if(jsonParameterConfigJavascriptSourceJSON.getInt("value") == 1) {
private String projectName;

//@formatter:off
@DataBoundConstructor
public ExtendedChoiceParameterDefinition(String name,
String type,
String value,
Expand Down

0 comments on commit a5c9f6f

Please sign in to comment.