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 ClassesNested classes/interfaces inherited from class org.jenkinsci.plugins.credentialsbinding.Binding
Binding.Environment, Binding.SingleEnvironmentNested 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 -
Constructor Summary
Constructors -
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, variablesMethods 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:MultiBindingType token.- Specified by:
typein 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:BindingSets up bindings for a build.- Overrides:
bindSinglein 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
-