Class StringBinding
java.lang.Object
hudson.model.AbstractDescribableImpl<MultiBinding<C>>
org.jenkinsci.plugins.credentialsbinding.MultiBinding<C>
org.jenkinsci.plugins.credentialsbinding.Binding<org.jenkinsci.plugins.plaincredentials.StringCredentials>
org.jenkinsci.plugins.credentialsbinding.impl.StringBinding
- All Implemented Interfaces:
ExtensionPoint
,Describable<MultiBinding<org.jenkinsci.plugins.plaincredentials.StringCredentials>>
public class StringBinding
extends Binding<org.jenkinsci.plugins.plaincredentials.StringCredentials>
-
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<org.jenkinsci.plugins.plaincredentials.StringCredentials>
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
-
StringBinding
-
-
Method Details
-
type
Description copied from class:MultiBinding
Type token.- Specified by:
type
in classMultiBinding<org.jenkinsci.plugins.plaincredentials.StringCredentials>
-
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<org.jenkinsci.plugins.plaincredentials.StringCredentials>
- 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
-