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.UnbinderExtensionPoint.LegacyInstancesAreScopedToHudson| Constructor and Description |
|---|
UsernamePasswordBinding(String variable,
String credentialsId) |
| Modifier and Type | Method and Description |
|---|---|
Binding.SingleEnvironment |
bindSingle(Run<?,?> build,
FilePath workspace,
Launcher launcher,
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, variablesprotected Class<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials> type()
MultiBindingtype in class MultiBinding<com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials>public Binding.SingleEnvironment bindSingle(@Nonnull Run<?,?> build, @Nullable FilePath workspace, @Nullable Launcher launcher, @Nonnull 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–2021. All rights reserved.