public class DiscardBuildPublisher extends Recorder
| Modifier and Type | Class and Description |
|---|---|
static class |
DiscardBuildPublisher.DescriptorImpl
Descriptor for
DiscardBuildPublisher. |
Publisher.DescriptorExtensionListImplExtensionPoint.LegacyInstancesAreScopedToHudsonBuildStep.PublisherListBUILDERS, PUBLISHERS| Constructor and Description |
|---|
DiscardBuildPublisher(String daysToKeep,
String intervalDaysToKeep,
String numToKeep,
String intervalNumToKeep,
boolean discardSuccess,
boolean discardUnstable,
boolean discardFailure,
boolean discardNotBuilt,
boolean discardAborted,
String minLogFileSize,
String maxLogFileSize,
String regexp,
boolean keepLastBuilds,
boolean holdMaxBuilds) |
| Modifier and Type | Method and Description |
|---|---|
protected Calendar |
getCurrentCalendar() |
String |
getDaysToKeep() |
DiscardBuildPublisher.DescriptorImpl |
getDescriptor() |
String |
getIntervalDaysToKeep() |
String |
getIntervalNumToKeep() |
String |
getMaxLogFileSize() |
String |
getMinLogFileSize() |
String |
getNumToKeep() |
String |
getRegexp() |
BuildStepMonitor |
getRequiredMonitorService() |
boolean |
isDiscardAborted() |
boolean |
isDiscardFailure() |
boolean |
isDiscardNotBuilt() |
boolean |
isDiscardSuccess() |
boolean |
isDiscardUnstable() |
boolean |
isHoldMaxBuilds() |
boolean |
isKeepLastBuilds() |
boolean |
perform(AbstractBuild<?,?> build,
Launcher launcher,
BuildListener listener) |
all, getProjectAction, needsToRunAfterFinalized, prebuildgetProjectAction, getProjectActions, perform, prebuild@DataBoundConstructor public DiscardBuildPublisher(String daysToKeep, String intervalDaysToKeep, String numToKeep, String intervalNumToKeep, boolean discardSuccess, boolean discardUnstable, boolean discardFailure, boolean discardNotBuilt, boolean discardAborted, String minLogFileSize, String maxLogFileSize, String regexp, boolean keepLastBuilds, boolean holdMaxBuilds)
public boolean perform(AbstractBuild<?,?> build, Launcher launcher, BuildListener listener)
perform in interface BuildStepperform in class BuildStepCompatibilityLayerpublic String getDaysToKeep()
public String getNumToKeep()
public String getMinLogFileSize()
public String getMaxLogFileSize()
public String getIntervalDaysToKeep()
public String getRegexp()
public String getIntervalNumToKeep()
public boolean isDiscardSuccess()
public boolean isDiscardUnstable()
public boolean isDiscardFailure()
public boolean isDiscardNotBuilt()
public boolean isDiscardAborted()
public boolean isKeepLastBuilds()
public boolean isHoldMaxBuilds()
public DiscardBuildPublisher.DescriptorImpl getDescriptor()
getDescriptor in interface Describable<Publisher>getDescriptor in class Recorderpublic BuildStepMonitor getRequiredMonitorService()
protected Calendar getCurrentCalendar()
Copyright © 2016–2022. All rights reserved.