Class UsernamePasswordBinding
java.lang.Object
hudson.model.AbstractDescribableImpl<MultiBinding<C>>
org.jenkinsci.plugins.credentialsbinding.MultiBinding<C>
org.jenkinsci.plugins.credentialsbinding.Binding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
org.jenkinsci.plugins.credentialsbinding.impl.UsernamePasswordBinding
- All Implemented Interfaces:
ExtensionPoint
,Describable<MultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>>
public class UsernamePasswordBinding
extends Binding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jenkinsci.plugins.credentialsbinding.Binding
Binding.Environment, Binding.SingleEnvironment
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbindSingle
(Run<?, ?> build, FilePath workspace, Launcher launcher, TaskListener listener) Sets up bindings for a build.protected Class<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
type()
Type token.Methods inherited from class org.jenkinsci.plugins.credentialsbinding.Binding
bind, bind, getCredentials, getVariable, variables
Methods inherited from class org.jenkinsci.plugins.credentialsbinding.MultiBinding
getCredentials, getCredentialsId, getDescriptor, variables
-
Constructor Details
-
UsernamePasswordBinding
-
-
Method Details
-
type
protected Class<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials> type()Description copied from class:MultiBinding
Type token.- Specified by:
type
in classMultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
-
bindSingle
public Binding.SingleEnvironment bindSingle(@NonNull Run<?, ?> build, @Nullable FilePath workspace, @Nullable Launcher launcher, @NonNull TaskListener listener) throws IOExceptionDescription copied from class:Binding
Sets up bindings for a build.- Overrides:
bindSingle
in classBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
- 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
Binding.SingleEnvironment
- Throws:
IOException
-