Skip to content

Commit

Permalink
[FIXED JENKINS-44588] Add "credentials" symbol to parameter
Browse files Browse the repository at this point in the history
Allows use of the credentials parameter type in Declarative.
  • Loading branch information
abayer committed Jun 1, 2017
1 parent a21b0d3 commit b8e5d60
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pom.xml
Expand Up @@ -85,6 +85,11 @@
</pluginRepositories>

<dependencies>
<dependency>
<groupId>org.jenkins-ci.plugins</groupId>
<artifactId>structs</artifactId>
<version>1.7</version>
</dependency>
<!-- test dependencies -->
<dependency>
<groupId>org.mockito</groupId>
Expand Down
Expand Up @@ -19,6 +19,7 @@
import net.sf.json.JSONObject;
import org.acegisecurity.Authentication;
import org.apache.commons.lang.StringUtils;
import org.jenkinsci.Symbol;
import org.kohsuke.stapler.AncestorInPath;
import org.kohsuke.stapler.DataBoundConstructor;
import org.kohsuke.stapler.QueryParameter;
Expand Down Expand Up @@ -111,6 +112,7 @@ public boolean isRequired() {
* Our descriptor.
*/
@Extension
@Symbol("credentials")
public static class DescriptorImpl extends ParameterDescriptor {

/**
Expand Down

0 comments on commit b8e5d60

Please sign in to comment.