Class SSHUserPrivateKeyBinding
java.lang.Object
hudson.model.AbstractDescribableImpl<MultiBinding<C>>
org.jenkinsci.plugins.credentialsbinding.MultiBinding<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>
org.jenkinsci.plugins.credentialsbinding.impl.SSHUserPrivateKeyBinding
- All Implemented Interfaces:
ExtensionPoint
,Describable<MultiBinding<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>>
public class SSHUserPrivateKeyBinding
extends MultiBinding<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.credentialsbinding.MultiBinding
MultiBinding.MultiEnvironment, MultiBinding.NullUnbinder, MultiBinding.Unbinder
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbind
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) Sets up bindings for a build.void
setPassphraseVariable
(String passphraseVariable) void
setUsernameVariable
(String usernameVariable) protected Class<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>
type()
Type token.Defines keys expected to be set inMultiBinding.MultiEnvironment.getSecretValues()
, particularly any that might be sensitive.Methods inherited from class org.jenkinsci.plugins.credentialsbinding.MultiBinding
getCredentials, getCredentialsId, getDescriptor, variables
-
Field Details
-
keyFileVariable
-
usernameVariable
-
passphraseVariable
-
-
Constructor Details
-
SSHUserPrivateKeyBinding
-
-
Method Details
-
setUsernameVariable
-
getUsernameVariable
-
setPassphraseVariable
-
getPassphraseVariable
-
type
Description copied from class:MultiBinding
Type token.- Specified by:
type
in classMultiBinding<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>
-
variables
Description copied from class:MultiBinding
Defines keys expected to be set inMultiBinding.MultiEnvironment.getSecretValues()
, particularly any that might be sensitive.- Overrides:
variables
in classMultiBinding<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>
- Throws:
CredentialNotFoundException
-
bind
public MultiBinding.MultiEnvironment bind(@NonNull Run<?, ?> build, FilePath workspace, Launcher launcher, @NonNull TaskListener listener) throws IOException, InterruptedExceptionDescription copied from class:MultiBinding
Sets up bindings for a build.- Specified by:
bind
in classMultiBinding<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>
- Parameters:
build
- The build. Cannot be nullworkspace
- The workspace - can be null ifBindingDescriptor.requiresWorkspace()
is false.launcher
- The launcher - can be null ifBindingDescriptor.requiresWorkspace()
is false.listener
- The task listener. Cannot be null.- Returns:
- The configured
MultiBinding.MultiEnvironment
- Throws:
IOException
InterruptedException
-