C - a kind of credentialspublic abstract class Binding<C extends com.cloudbees.plugins.credentials.common.StandardCredentials> extends MultiBinding<C>
| Modifier and Type | Class and Description |
|---|---|
static interface |
Binding.Environment
Deprecated.
|
protected static class |
Binding.SingleEnvironment
|
MultiBinding.MultiEnvironment, MultiBinding.NullUnbinder, MultiBinding.UnbinderExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier | Constructor and Description |
|---|---|
protected |
Binding(String variable,
String credentialsId)
For use with
DataBoundConstructor. |
| Modifier and Type | Method and Description |
|---|---|
Binding.Environment |
bind(AbstractBuild build,
Launcher launcher,
BuildListener listener)
Deprecated.
|
MultiBinding.MultiEnvironment |
bind(Run<?,?> build,
FilePath workspace,
Launcher launcher,
TaskListener listener)
Sets up bindings for a build.
|
Binding.SingleEnvironment |
bindSingle(Run<?,?> build,
FilePath workspace,
Launcher launcher,
TaskListener listener)
Sets up bindings for a build.
|
protected C |
getCredentials(AbstractBuild<?,?> build)
Deprecated.
|
String |
getVariable()
Environment variable name.
|
Set<String> |
variables(Run<?,?> build)
Defines keys expected to be set in
MultiBinding.MultiEnvironment.getSecretValues(), particularly any that might be sensitive. |
getCredentials, getCredentialsId, getDescriptor, type, variablespublic String getVariable()
@Deprecated public Binding.Environment bind(@Nonnull AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic Binding.SingleEnvironment bindSingle(@Nonnull Run<?,?> build, @Nullable FilePath workspace, @Nullable Launcher launcher, @Nonnull TaskListener listener) throws IOException, InterruptedException
build - The build. Cannot be nullworkspace - The workspace - can be null if BindingDescriptor.requiresWorkspace() is false.launcher - The launcher - can be null if BindingDescriptor.requiresWorkspace() is false.listener - The task listener. Cannot be null.Binding.SingleEnvironmentIOExceptionInterruptedExceptionpublic final MultiBinding.MultiEnvironment bind(@Nonnull Run<?,?> build, @Nullable FilePath workspace, @Nullable Launcher launcher, @Nonnull TaskListener listener) throws IOException, InterruptedException
MultiBindingbind in class MultiBinding<C extends com.cloudbees.plugins.credentials.common.StandardCredentials>build - The build. Cannot be nullworkspace - The workspace - can be null if BindingDescriptor.requiresWorkspace() is false.launcher - The launcher - can be null if BindingDescriptor.requiresWorkspace() is false.listener - The task listener. Cannot be null.MultiBinding.MultiEnvironmentIOExceptionInterruptedExceptionpublic final Set<String> variables(Run<?,?> build)
MultiBindingMultiBinding.MultiEnvironment.getSecretValues(), particularly any that might be sensitive.variables in class MultiBinding<C extends com.cloudbees.plugins.credentials.common.StandardCredentials>@Deprecated @Nonnull protected final C getCredentials(@Nonnull AbstractBuild<?,?> build) throws IOException
IOExceptionCopyright © 2016–2021. All rights reserved.