Package org.ow2.clif.jenkins
Class ClifPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
org.ow2.clif.jenkins.ClifPublisher
- All Implemented Interfaces:
ExtensionPoint,Describable<Publisher>,BuildStep
The publisher creates the results we want from the Clif execution.
=======
An extension point to execute a post build report generation for Clif result.
It defines ClifProjectAction as Project Action and
ClifBuildAction as an action for each build.
This publisher is not executed when the build status is ABORTED or FAILURE.
- Author:
- Julien Coste, Bruno Dillenseger
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImplNested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherListNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ClifPublisher.DescriptorImplDescriptor should be singleton.Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS -
Constructor Summary
ConstructorsConstructorDescriptionClifPublisher(String clifReportDirectory) ClifPublisher(String clifReportDirectory, boolean dateFiltering, String minTimestamp, String maxTimestamp, int chartWidth, int chartHeight, int distributionSliceSize, int distributionSliceNumber, int statisticalPeriod) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanContinue(Result result) Clif publisher doesn't need to continue if the build's status is ABORTED or FAILURE.getAlias()intintbooleanintintprotected static doubleprotected static longgetProjectAction(AbstractProject<?, ?> project) intbooleanprotected static booleanprotected static booleanbooleanperform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuildMethods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectActions, perform, prebuild
-
Field Details
-
DESCRIPTOR
Descriptor should be singleton.
-
-
Constructor Details
-
ClifPublisher
-
ClifPublisher
-
-
Method Details
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOException- Specified by:
performin interfaceBuildStep- Overrides:
performin classBuildStepCompatibilityLayer- Throws:
InterruptedExceptionIOException
-
getProjectAction
- Specified by:
getProjectActionin interfaceBuildStep- Overrides:
getProjectActionin classBuildStepCompatibilityLayer
-
getRequiredMonitorService
-
canContinue
Clif publisher doesn't need to continue if the build's status is ABORTED or FAILURE.- Parameters:
result- build status object- Returns:
- true if build status is not ABORTED or FAILURE.
-
getDescriptor
- Specified by:
getDescriptorin interfaceDescribable<Publisher>- Overrides:
getDescriptorin classRecorder
-
isLong
-
getLong
-
isDouble
-
getDouble
-
getDateFiltering
public boolean getDateFiltering() -
getMinTimestamp
-
getMaxTimestamp
-
getClifReportDirectory
-
getAlias
-
getSuccessPatterns
-
getDataCleanupConfig
-
getChartWidth
public int getChartWidth() -
getChartHeight
public int getChartHeight() -
getDistributionSliceNumber
public int getDistributionSliceNumber() -
getDistributionSliceSize
public int getDistributionSliceSize() -
isDateFiltering
public boolean isDateFiltering() -
getStatisticalPeriod
public int getStatisticalPeriod()
-