Skip to content
Permalink
Browse files

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 8e901a8e4a82a19eca8adb0f11c77f26ce043b36
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/main/java/jenkins/plugins/git/GitSCMSource.java
@@ -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) ||
@@ -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) ||

0 comments on commit 8e901a8

Please sign in to comment.
You can’t perform that action at this time.