Skip to content

Commit

Permalink
Merge pull request #43 from onecloud-sean/sshlogin
Browse files Browse the repository at this point in the history
Allow SSH username with private key access to clones
  • Loading branch information
jswager committed Mar 25, 2016
2 parents 1a7c460 + 0d879f7 commit 9424c88
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/

package org.jenkinsci.plugins;


import com.cloudbees.plugins.credentials.common.StandardUsernameCredentials;
import com.cloudbees.plugins.credentials.common.StandardUsernameListBoxModel;
import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials;
import com.cloudbees.plugins.credentials.domains.SchemeRequirement;
import hudson.Extension;
import hudson.model.Computer;
Expand Down Expand Up @@ -275,7 +275,7 @@ public ListBoxModel doFillCredentialsIdItems(@AncestorInPath ItemGroup context)
if(!(context instanceof AccessControlled ? (AccessControlled) context : Jenkins.getInstance()).hasPermission(Computer.CONFIGURE)) {
return new ListBoxModel();
}
final List<StandardUsernamePasswordCredentials> credentials = lookupCredentials(StandardUsernamePasswordCredentials.class,context,ACL.SYSTEM,HTTP_SCHEME,HTTPS_SCHEME);
final List<StandardUsernameCredentials> credentials = lookupCredentials(StandardUsernameCredentials.class, context, ACL.SYSTEM, HTTP_SCHEME, HTTPS_SCHEME);
return new StandardUsernameListBoxModel().withAll(credentials);
}
}
Expand Down

0 comments on commit 9424c88

Please sign in to comment.