public class SSHUserPrivateKeyBinding extends MultiBinding<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>
| Modifier and Type | Class and Description |
|---|---|
static class |
SSHUserPrivateKeyBinding.DescriptorImpl |
MultiBinding.MultiEnvironment, MultiBinding.NullUnbinder, MultiBinding.Unbinder| Modifier and Type | Field and Description |
|---|---|
String |
keyFileVariable |
String |
passphraseVariable |
String |
usernameVariable |
| Constructor and Description |
|---|
SSHUserPrivateKeyBinding(String keyFileVariable,
String credentialsId) |
| Modifier and Type | Method and Description |
|---|---|
MultiBinding.MultiEnvironment |
bind(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Sets up bindings for a build.
|
String |
getPassphraseVariable() |
String |
getUsernameVariable() |
void |
setPassphraseVariable(String passphraseVariable) |
void |
setUsernameVariable(String usernameVariable) |
protected Class<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey> |
type()
Type token.
|
Set<String> |
variables()
Defines keys expected to be set in
MultiBinding.MultiEnvironment.getValues(), particularly any that might be sensitive. |
getCredentials, getCredentialsId, getDescriptor, getPatternStringForSecretspublic final String keyFileVariable
public String usernameVariable
public String passphraseVariable
@DataBoundSetter public void setUsernameVariable(@Nonnull String usernameVariable)
@CheckForNull public String getUsernameVariable()
@DataBoundSetter public void setPassphraseVariable(@Nonnull String passphraseVariable)
@CheckForNull public String getPassphraseVariable()
protected Class<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey> type()
MultiBindingtype in class MultiBinding<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>public Set<String> variables()
MultiBindingMultiBinding.MultiEnvironment.getValues(), particularly any that might be sensitive.variables in class MultiBinding<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>public MultiBinding.MultiEnvironment bind(hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws IOException, InterruptedException
MultiBindingbind in class MultiBinding<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>build - The build. Cannot be nullworkspace - The workspace - can be null if BindingDescriptor.requiresWorkspace() is false.launcher - The launcher - can be null if BindingDescriptor.requiresWorkspace() is false.listener - The task listener. Cannot be null.MultiBinding.MultiEnvironmentIOExceptionInterruptedExceptionCopyright © 2016–2017. All rights reserved.