public final class CredentialsParameterBinder extends InvisibleAction
getOrCreate(Run)
. This binds any existing CredentialsParameterValue
s using the
Cause.UserIdCause
if available. Other plugins may
bind and
unbind parameters during a build.Constructor and Description |
---|
CredentialsParameterBinder() |
Modifier and Type | Method and Description |
---|---|
void |
bindCredentialsParameter(String userId,
CredentialsParameterValue parameterValue)
Binds a credentials parameter with an optional user ID.
|
CredentialsParameterBinding |
forParameterName(String parameterName) |
static CredentialsParameterBinder |
getOrCreate(Run<?,?> run)
Gets or creates a CredentialsParameterBinder for the given run.
|
void |
unbindCredentialsParameter(String parameterName)
Unbinds a credentials parameter.
|
getDisplayName, getIconFileName, getUrlName
@Nonnull public static CredentialsParameterBinder getOrCreate(@Nonnull Run<?,?> run)
ParametersAction
.public void bindCredentialsParameter(@CheckForNull String userId, @Nonnull CredentialsParameterValue parameterValue)
public void unbindCredentialsParameter(@Nonnull String parameterName)
@CheckForNull @Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public CredentialsParameterBinding forParameterName(@Nonnull String parameterName)
Copyright © 2016–2021. All rights reserved.