public class KeychainPasswordAndPathBinding extends org.jenkinsci.plugins.credentialsbinding.MultiBinding<KeychainPasswordAndPath>
| Modifier and Type | Class and Description |
|---|---|
static class |
KeychainPasswordAndPathBinding.DescriptorImpl |
org.jenkinsci.plugins.credentialsbinding.MultiBinding.MultiEnvironment, org.jenkinsci.plugins.credentialsbinding.MultiBinding.NullUnbinder, org.jenkinsci.plugins.credentialsbinding.MultiBinding.UnbinderExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_KEYCHAIN_PATH_VARIABLE_NAME |
| Constructor and Description |
|---|
KeychainPasswordAndPathBinding(String keychainPathVariable,
String passwordVariable,
String inSearchPathVariable,
String credentialsId) |
| Modifier and Type | Method and Description |
|---|---|
org.jenkinsci.plugins.credentialsbinding.MultiBinding.MultiEnvironment |
bind(Run<?,?> build,
FilePath workspace,
Launcher launcher,
TaskListener listener) |
String |
getInSearchPathVariable() |
String |
getKeychainPathVariable() |
String |
getPasswordVariable() |
protected Class<KeychainPasswordAndPath> |
type() |
Set<String> |
variables() |
public static final String DEFAULT_KEYCHAIN_PATH_VARIABLE_NAME
@DataBoundConstructor
public KeychainPasswordAndPathBinding(@Nullable
String keychainPathVariable,
@Nullable
String passwordVariable,
@Nullable
String inSearchPathVariable,
String credentialsId)
keychainPathVariable - if null, "KEYCHAIN_PATH" will be used.passwordVariable - if null, will be used.inSearchPathVariable - if null, will be used.credentialsId - identifier which should be referenced when accessing the credentials from a job/pipeline.@NonNull public String getKeychainPathVariable()
@NonNull public String getPasswordVariable()
@NonNull public String getInSearchPathVariable()
protected Class<KeychainPasswordAndPath> type()
type in class org.jenkinsci.plugins.credentialsbinding.MultiBinding<KeychainPasswordAndPath>public org.jenkinsci.plugins.credentialsbinding.MultiBinding.MultiEnvironment bind(@NonNull
Run<?,?> build,
FilePath workspace,
Launcher launcher,
TaskListener listener)
throws IOException,
InterruptedException
bind in class org.jenkinsci.plugins.credentialsbinding.MultiBinding<KeychainPasswordAndPath>IOExceptionInterruptedExceptionpublic Set<String> variables()
variables in class org.jenkinsci.plugins.credentialsbinding.MultiBinding<KeychainPasswordAndPath>Copyright © 2016–2022. All rights reserved.