public class LogfilesizecheckerWrapper extends SimpleBuildWrapper implements Serializable
BuildWrapper that terminates a build if its log file size is too big.| Modifier and Type | Class and Description |
|---|---|
static class |
LogfilesizecheckerWrapper.DescriptorImpl
The Descriptor for the BuildWrapper.
|
SimpleBuildWrapper.Context, SimpleBuildWrapper.DisposerBuildWrapper.EnvironmentExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static LogfilesizecheckerWrapper.DescriptorImpl |
DESCRIPTOR
Creates descriptor for the BuildWrapper.
|
boolean |
failBuild
Fail the build rather than aborting it.
|
int |
maxLogSize
If the log file for the build has more MB, it will be terminated.
|
boolean |
setOwn
Set your own max size instead of using the default.
|
| Constructor and Description |
|---|
LogfilesizecheckerWrapper(int maxLogSize,
boolean failBuild,
boolean setOwn)
Contructor for data binding of form data.
|
| Modifier and Type | Method and Description |
|---|---|
Descriptor<BuildWrapper> |
getDescriptor() |
void |
setUp(SimpleBuildWrapper.Context context,
Run<?,?> build,
FilePath workspace,
Launcher launcher,
TaskListener listener,
EnvVars initialEnvironment) |
createLoggerDecorator, decorateLauncher, decorateLogger, getProjectActions, makeBuildVariables, makeSensitiveBuildVariables, preCheckout, runPreCheckout, setUpall, getProjectAction, setUppublic boolean setOwn
public int maxLogSize
public boolean failBuild
@Extension public static final LogfilesizecheckerWrapper.DescriptorImpl DESCRIPTOR
@DataBoundConstructor
public LogfilesizecheckerWrapper(int maxLogSize,
boolean failBuild,
boolean setOwn)
maxLogSize - job specific maximum log sizefailBuild - true if the build should be marked failed instead of abortedsetOwn - true if a job specific log size is set, false if global setting is usedpublic void setUp(SimpleBuildWrapper.Context context, Run<?,?> build, FilePath workspace, Launcher launcher, TaskListener listener, EnvVars initialEnvironment) throws IOException, InterruptedException
setUp in class SimpleBuildWrapperIOExceptionInterruptedExceptionpublic Descriptor<BuildWrapper> getDescriptor()
getDescriptor in interface Describable<BuildWrapper>getDescriptor in class AbstractDescribableImpl<BuildWrapper>Copyright © 2016–2018. All rights reserved.