C - a kind of credentialspublic abstract class Binding<C extends com.cloudbees.plugins.credentials.common.StandardCredentials> extends hudson.model.AbstractDescribableImpl<Binding<C>> implements hudson.ExtensionPoint
| Modifier and Type | Class and Description |
|---|---|
static interface |
Binding.Environment
Callback for processing during a build.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Binding(String variable,
String credentialsId)
For use with
DataBoundConstructor. |
| Modifier and Type | Method and Description |
|---|---|
abstract Binding.Environment |
bind(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Sets up bindings for a build.
|
protected C |
getCredentials(hudson.model.AbstractBuild<?,?> build)
Looks up the actual credentials.
|
String |
getCredentialsId()
Identifier of the credentials to be bound.
|
BindingDescriptor<C> |
getDescriptor() |
String |
getVariable()
Environment variable name.
|
protected abstract Class<C> |
type()
Type token.
|
public String getVariable()
public String getCredentialsId()
public abstract Binding.Environment bind(@Nonnull hudson.model.AbstractBuild build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws IOException, InterruptedException
IOExceptionInterruptedException@Nonnull protected final C getCredentials(@Nonnull hudson.model.AbstractBuild<?,?> build) throws IOException
build - the build.FileNotFoundException - if the credentials could not be found (for convenience, rather than returning null)IOExceptionpublic BindingDescriptor<C> getDescriptor()
Copyright © 2004-2014. All Rights Reserved.