public class LogfilesizecheckerWrapper
extends hudson.tasks.BuildWrapper
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.
|
| 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 |
|---|---|
hudson.model.Descriptor<hudson.tasks.BuildWrapper> |
getDescriptor() |
hudson.tasks.BuildWrapper.Environment |
setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
public 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 hudson.tasks.BuildWrapper.Environment setUp(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException
setUp in class hudson.tasks.BuildWrapperIOExceptionpublic hudson.model.Descriptor<hudson.tasks.BuildWrapper> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.BuildWrapper>getDescriptor in class hudson.model.AbstractDescribableImpl<hudson.tasks.BuildWrapper>Copyright © 2004-2013. All Rights Reserved.