Class SecretBuildWrapper
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<BuildWrapper>
-
- hudson.tasks.BuildWrapper
-
- org.jenkinsci.plugins.credentialsbinding.impl.SecretBuildWrapper
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<BuildWrapper>
public class SecretBuildWrapper extends BuildWrapper
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SecretBuildWrapper.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.tasks.BuildWrapper
BuildWrapper.Environment
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description SecretBuildWrapper(List<? extends MultiBinding<?>> bindings)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description OutputStream
decorateLogger(AbstractBuild build, OutputStream logger)
List<? extends MultiBinding<?>>
getBindings()
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
readResolve()
BuildWrapper.Environment
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 Detail
-
SecretBuildWrapper
@DataBoundConstructor public SecretBuildWrapper(List<? extends MultiBinding<?>> bindings)
-
-
Method Detail
-
getPatternForBuild
@CheckForNull public static Pattern getPatternForBuild(@NonNull AbstractBuild<?,?> build)
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
public List<? extends MultiBinding<?>> 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
public void makeSensitiveBuildVariables(AbstractBuild build, Set<String> sensitiveVariables)
- Overrides:
makeSensitiveBuildVariables
in classBuildWrapper
-
readResolve
protected Object readResolve()
-
-