public class UsernamePasswordBinding extends Binding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>
| Modifier and Type | Class and Description |
|---|---|
static class |
UsernamePasswordBinding.DescriptorImpl |
Binding.Environment, Binding.SingleEnvironmentMultiBinding.MultiEnvironment, MultiBinding.NullUnbinder, MultiBinding.Unbinder| Constructor and Description |
|---|
UsernamePasswordBinding(String variable,
String credentialsId) |
| Modifier and Type | Method and Description |
|---|---|
Binding.SingleEnvironment |
bindSingle(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
Sets up bindings for a build.
|
protected Class<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials> |
type()
Type token.
|
bind, bind, getCredentials, getVariable, variablesgetCredentials, getCredentialsId, getDescriptor, getPatternStringForSecretsprotected Class<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials> type()
MultiBindingtype in class MultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>public Binding.SingleEnvironment bindSingle(@Nonnull hudson.model.Run<?,?> build, @Nullable hudson.FilePath workspace, @Nullable hudson.Launcher launcher, @Nonnull hudson.model.TaskListener listener) throws IOException, InterruptedException
BindingbindSingle in class Binding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>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.SingleEnvironmentIOExceptionInterruptedExceptionCopyright © 2016–2017. All rights reserved.