public class SSHAgentBuildWrapper
extends hudson.tasks.BuildWrapper
| Modifier and Type | Class and Description |
|---|---|
static class |
SSHAgentBuildWrapper.CredentialHolder
A value object to make it possible to pass back multiple credentials via the UI.
|
static class |
SSHAgentBuildWrapper.DescriptorImpl
Our descriptor.
|
| Constructor and Description |
|---|
SSHAgentBuildWrapper(List<String> credentialIds,
boolean ignoreMissing)
Constructs a new instance.
|
SSHAgentBuildWrapper(SSHAgentBuildWrapper.CredentialHolder[] credentialHolders,
boolean ignoreMissing)
Constructs a new instance.
|
SSHAgentBuildWrapper(String user)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
description(com.cloudbees.plugins.credentials.common.StandardUsernameCredentials c)
Helper method that returns a safe description of a
SSHUser. |
SSHAgentBuildWrapper.CredentialHolder[] |
getCredentialHolders()
Returns the value objects used to hold the credential ids.
|
List<String> |
getCredentialIds()
Gets the
IdCredentials.getId()s of the
credentials to use. |
String |
getUser()
Deprecated.
|
boolean |
isIgnoreMissing()
When
true then any missing credentials will be ignored. |
void |
preCheckout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
hudson.tasks.BuildWrapper.Environment |
setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
@Deprecated public SSHAgentBuildWrapper(String user)
SSHAgentBuildWrapper(java.util.List,boolean)user - the IdCredentials.getId() of the credentials to use.@DataBoundConstructor public SSHAgentBuildWrapper(SSHAgentBuildWrapper.CredentialHolder[] credentialHolders, boolean ignoreMissing)
credentialHolders - the SSHAgentBuildWrapper.CredentialHolders of the credentials to use.ignoreMissing - @Deprecated public String getUser()
IdCredentials.getId() of the credentials to use.IdCredentials.getId() of the credentials to use.public List<String> getCredentialIds()
IdCredentials.getId()s of the
credentials to use.IdCredentials.getId()s of the
credentials to use.public boolean isIgnoreMissing()
true then any missing credentials will be ignored. When false then the build will be failed
if any of the required credentials cannot be resolved.true missing credentials will not cause a build failure.public SSHAgentBuildWrapper.CredentialHolder[] getCredentialHolders()
public void preCheckout(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
preCheckout in class hudson.tasks.BuildWrapperIOExceptionInterruptedExceptionpublic hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
setUp in class hudson.tasks.BuildWrapperIOExceptionInterruptedExceptionCopyright © 2004-2015. All Rights Reserved.