C - a kind of credentialspublic abstract class MultiBinding<C extends com.cloudbees.plugins.credentials.common.StandardCredentials> extends hudson.model.AbstractDescribableImpl<MultiBinding<C>> implements hudson.ExtensionPoint
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiBinding.MultiEnvironment
|
protected static class |
MultiBinding.NullUnbinder
No-op callback.
|
static interface |
MultiBinding.Unbinder
Callback run at the end of a build.
|
| Modifier | Constructor and Description |
|---|---|
protected |
MultiBinding(String credentialsId)
For use with
DataBoundConstructor. |
| Modifier and Type | Method and Description |
|---|---|
abstract MultiBinding.MultiEnvironment |
bind(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Sets up bindings for a build.
|
protected C |
getCredentials(hudson.model.Run<?,?> build)
Looks up the actual credentials.
|
String |
getCredentialsId()
Identifier of the credentials to be bound.
|
BindingDescriptor<C> |
getDescriptor() |
protected abstract Class<C> |
type()
Type token.
|
abstract Set<String> |
variables()
Defines keys expected to be set in
MultiBinding.MultiEnvironment.getValues(), particularly any that might be sensitive. |
protected MultiBinding(String credentialsId)
DataBoundConstructor.public final String getCredentialsId()
public abstract MultiBinding.MultiEnvironment bind(@Nonnull hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener) throws IOException, InterruptedException
IOExceptionInterruptedExceptionpublic abstract Set<String> variables()
MultiBinding.MultiEnvironment.getValues(), particularly any that might be sensitive.@Nonnull protected final C getCredentials(@Nonnull hudson.model.Run<?,?> build) throws IOException
build - the build.FileNotFoundException - if the credentials could not be found (for convenience, rather than returning null)IOExceptionpublic BindingDescriptor<C> getDescriptor()
getDescriptor in interface hudson.model.Describable<MultiBinding<C extends com.cloudbees.plugins.credentials.common.StandardCredentials>>getDescriptor in class hudson.model.AbstractDescribableImpl<MultiBinding<C extends com.cloudbees.plugins.credentials.common.StandardCredentials>>Copyright © 2016. All rights reserved.