public class LogfilesizecheckerWrapper extends jenkins.tasks.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.
|
jenkins.tasks.SimpleBuildWrapper.Context, jenkins.tasks.SimpleBuildWrapper.Disposer| 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() |
void |
setUp(jenkins.tasks.SimpleBuildWrapper.Context context,
hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.EnvVars initialEnvironment) |
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 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.SimpleBuildWrapperIOExceptionInterruptedExceptionpublic 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 © 2016–2018. All rights reserved.