From 0d879f7582c0749b84e422bcd00900d7915f6bea Mon Sep 17 00:00:00 2001 From: Sean Gilhooly Date: Tue, 15 Mar 2016 23:39:42 -0400 Subject: [PATCH] Allow SSH username with private key access to clones --- .../org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java b/src/main/java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java index 48c33c89..f5040545 100644 --- a/src/main/java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java +++ b/src/main/java/org/jenkinsci/plugins/vSphereCloudSlaveTemplate.java @@ -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; @@ -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 credentials = lookupCredentials(StandardUsernamePasswordCredentials.class,context,ACL.SYSTEM,HTTP_SCHEME,HTTPS_SCHEME); + final List credentials = lookupCredentials(StandardUsernameCredentials.class, context, ACL.SYSTEM, HTTP_SCHEME, HTTPS_SCHEME); return new StandardUsernameListBoxModel().withAll(credentials); } }