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 ClassesNested classes/interfaces inherited from class org.jenkinsci.plugins.credentialsbinding.MultiBinding
MultiBinding.MultiEnvironment, MultiBinding.NullUnbinder, MultiBinding.UnbinderNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbind(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) Sets up bindings for a build.voidsetPassphraseVariable(String passphraseVariable) voidsetUsernameVariable(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:MultiBindingType token.- Specified by:
typein classMultiBinding<com.cloudbees.jenkins.plugins.sshcredentials.SSHUserPrivateKey>
-
variables
Description copied from class:MultiBindingDefines keys expected to be set inMultiBinding.MultiEnvironment.getSecretValues(), particularly any that might be sensitive.- Overrides:
variablesin 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:MultiBindingSets up bindings for a build.- Specified by:
bindin 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:
IOExceptionInterruptedException
-