Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #505 from acontes/JENKINS-44271
[JENKINS-44271] doFillcredentialsId to look for Item not SCMSourceOwner.
  • Loading branch information
stephenc committed Aug 3, 2017
2 parents e08051a + 9841317 commit 8e901a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/jenkins/plugins/git/GitSCMSource.java
Expand Up @@ -424,7 +424,7 @@ public String getDisplayName() {
return Messages.GitSCMSource_DisplayName();
}

public ListBoxModel doFillCredentialsIdItems(@AncestorInPath SCMSourceOwner context,
public ListBoxModel doFillCredentialsIdItems(@AncestorInPath Item context,
@QueryParameter String remote,
@QueryParameter String credentialsId) {
if (context == null && !Jenkins.getActiveInstance().hasPermission(Jenkins.ADMINISTER) ||
Expand All @@ -441,8 +441,8 @@ public ListBoxModel doFillCredentialsIdItems(@AncestorInPath SCMSourceOwner cont
GitClient.CREDENTIALS_MATCHER)
.includeCurrentValue(credentialsId);
}

public FormValidation doCheckCredentialsId(@AncestorInPath SCMSourceOwner context,
public FormValidation doCheckCredentialsId(@AncestorInPath Item context,
@QueryParameter String remote,
@QueryParameter String value) {
if (context == null && !Jenkins.getActiveInstance().hasPermission(Jenkins.ADMINISTER) ||
Expand Down

0 comments on commit 8e901a8

Please sign in to comment.