Class SecretBuildWrapper
java.lang.Object
hudson.model.AbstractDescribableImpl<BuildWrapper>
hudson.tasks.BuildWrapper
org.jenkinsci.plugins.credentialsbinding.impl.SecretBuildWrapper
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildWrapper>
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecorateLogger
(AbstractBuild build, OutputStream logger) List<? extends MultiBinding<?>>
static Pattern
getPatternForBuild
(AbstractBuild<?, ?> build) Gets thePattern
for the secret values for a given build, if that build has secrets defined.void
makeSensitiveBuildVariables
(AbstractBuild build, Set<String> sensitiveVariables) protected Object
setUp
(AbstractBuild build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.tasks.BuildWrapper
all, decorateLauncher, getProjectAction, getProjectActions, makeBuildVariables, preCheckout, setUp
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Constructor Details
-
SecretBuildWrapper
-
-
Method Details
-
getPatternForBuild
Gets thePattern
for the secret values for a given build, if that build has secrets defined. If not, return null.- Parameters:
build
- A non-null build.- Returns:
- A compiled
Pattern
from the build's secret values, if the build has any.
-
getBindings
-
decorateLogger
public OutputStream decorateLogger(AbstractBuild build, OutputStream logger) throws Run.RunnerAbortedException - Overrides:
decorateLogger
in classBuildWrapper
- Throws:
Run.RunnerAbortedException
-
setUp
public BuildWrapper.Environment setUp(AbstractBuild build, Launcher launcher, BuildListener listener) throws IOException, InterruptedException - Overrides:
setUp
in classBuildWrapper
- Throws:
IOException
InterruptedException
-
makeSensitiveBuildVariables
- Overrides:
makeSensitiveBuildVariables
in classBuildWrapper
-
readResolve
-