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.UnbinderExtensionPoint.LegacyInstancesAreScopedToHudson| 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(Run<?,?> build,
FilePath workspace,
Launcher launcher,
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(Run<?,?> build)
Defines keys expected to be set in
MultiBinding.MultiEnvironment.getSecretValues(), particularly any that might be sensitive. |
getCredentials, getCredentialsId, getDescriptor, variablespublic 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(Run<?,?> build) throws CredentialNotFoundException
MultiBindingMultiBinding.MultiEnvironment.getSecretValues(), particularly any that might be sensitive.variables in class MultiBinding<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>CredentialNotFoundExceptionpublic MultiBinding.MultiEnvironment bind(Run<?,?> build, FilePath workspace, Launcher launcher, 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–2021. All rights reserved.