public final class MaskPasswordsBuildWrapper
extends jenkins.tasks.SimpleBuildWrapper
Modifier and Type | Class and Description |
---|---|
static class |
MaskPasswordsBuildWrapper.ConverterImpl
We need this converter to handle marshalling/unmarshalling of the build
wrapper data: Relying on the default mechanism doesn't make it (because
Secret doesn't have the DataBoundConstructor annotation). |
static class |
MaskPasswordsBuildWrapper.DescriptorImpl |
static class |
MaskPasswordsBuildWrapper.VarMaskRegex
Represents regexes defined by users in their jobs.
|
static class |
MaskPasswordsBuildWrapper.VarPasswordPair
Represents name/password entries defined by users in their jobs.
|
jenkins.tasks.SimpleBuildWrapper.Context, jenkins.tasks.SimpleBuildWrapper.Disposer
Constructor and Description |
---|
MaskPasswordsBuildWrapper(List<MaskPasswordsBuildWrapper.VarPasswordPair> varPasswordPairs) |
MaskPasswordsBuildWrapper(List<MaskPasswordsBuildWrapper.VarPasswordPair> varPasswordPairs,
List<MaskPasswordsBuildWrapper.VarMaskRegex> varMaskRegexes) |
Modifier and Type | Method and Description |
---|---|
hudson.console.ConsoleLogFilter |
createLoggerDecorator(hudson.model.Run<?,?> build) |
List<MaskPasswordsBuildWrapper.VarMaskRegex> |
getVarMaskRegexes() |
List<MaskPasswordsBuildWrapper.VarPasswordPair> |
getVarPasswordPairs() |
void |
makeBuildVariables(hudson.model.AbstractBuild build,
Map<String,String> variables)
Contributes the passwords defined by the user as variables that can be reused
from build steps (and other places).
|
void |
makeSensitiveBuildVariables(hudson.model.AbstractBuild build,
Set<String> sensitiveVariables) |
void |
setUp(jenkins.tasks.SimpleBuildWrapper.Context context,
hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.EnvVars initialEnvironment) |
@DataBoundConstructor public MaskPasswordsBuildWrapper(List<MaskPasswordsBuildWrapper.VarPasswordPair> varPasswordPairs, List<MaskPasswordsBuildWrapper.VarMaskRegex> varMaskRegexes)
public MaskPasswordsBuildWrapper(List<MaskPasswordsBuildWrapper.VarPasswordPair> varPasswordPairs)
public hudson.console.ConsoleLogFilter createLoggerDecorator(hudson.model.Run<?,?> build)
createLoggerDecorator
in class jenkins.tasks.SimpleBuildWrapper
public void makeBuildVariables(hudson.model.AbstractBuild build, Map<String,String> variables)
makeBuildVariables
in class jenkins.tasks.SimpleBuildWrapper
public void makeSensitiveBuildVariables(hudson.model.AbstractBuild build, Set<String> sensitiveVariables)
makeSensitiveBuildVariables
in class jenkins.tasks.SimpleBuildWrapper
public void setUp(jenkins.tasks.SimpleBuildWrapper.Context context, hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.Launcher launcher, hudson.model.TaskListener listener, hudson.EnvVars initialEnvironment) throws IOException, InterruptedException
setUp
in class jenkins.tasks.SimpleBuildWrapper
IOException
InterruptedException
public List<MaskPasswordsBuildWrapper.VarPasswordPair> getVarPasswordPairs()
public List<MaskPasswordsBuildWrapper.VarMaskRegex> getVarMaskRegexes()
Copyright © 2016–2017. All rights reserved.