public class PRQANotifier extends hudson.tasks.Recorder implements Serializable, jenkins.tasks.SimpleBuildStep
Modifier and Type | Class and Description |
---|---|
static class |
PRQANotifier.DescriptorImpl
This class is used by Jenkins to define the plugin.
|
hudson.tasks.Publisher.DescriptorExtensionListImpl
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory
Modifier and Type | Field and Description |
---|---|
EnumSet<PRQAContext.QARReportType> |
chosenReportTypes |
protected List<PRQAGraph> |
graphTypes |
protected PrintStream |
outStream |
boolean |
runWhenSuccess |
QAFrameworkPostBuildActionSetup |
sourceQAFramework |
List<AbstractThreshold> |
thresholdsDesc |
Constructor and Description |
---|
PRQANotifier(boolean runWhenSuccess,
QAFrameworkPostBuildActionSetup sourceQAFramework,
List<AbstractThreshold> thresholdsDesc) |
Modifier and Type | Method and Description |
---|---|
protected void |
copyResourcesToArtifactsDir(String pattern,
hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.model.TaskListener listener) |
boolean |
enter() |
protected boolean |
evaluate(PRQAReading previousStableComplianceStatus,
List<? extends AbstractThreshold> thresholds,
PRQAComplianceStatus currentComplianceStatus)
Process the results
|
EnumSet<PRQAContext.QARReportType> |
getChosenReportTypes() |
PRQAGraph |
getGraph(String simpleClassName) |
List<PRQAGraph> |
getGraphTypes() |
hudson.model.Action |
getProjectAction(hudson.model.AbstractProject<?,?> project) |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
List<PRQAGraph> |
getSupportedGraphs() |
int |
getThresholdLevel() |
protected boolean |
isBuildStableForContinuousImprovement(AbstractThreshold threshold,
PRQAComplianceStatus currentComplianceStatus,
PRQAComplianceStatus previousComplianceStatus) |
void |
perform(hudson.model.Run<?,?> run,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener taskListener) |
void |
setChosenReportTypes(EnumSet<PRQAContext.QARReportType> chosenReport) |
void |
setGraphTypes(List<PRQAGraph> graphTypes) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
getProjectActions, perform, perform, prebuild
protected transient PrintStream outStream
public QAFrameworkPostBuildActionSetup sourceQAFramework
public final List<AbstractThreshold> thresholdsDesc
public final boolean runWhenSuccess
public EnumSet<PRQAContext.QARReportType> chosenReportTypes
@DataBoundConstructor public PRQANotifier(boolean runWhenSuccess, QAFrameworkPostBuildActionSetup sourceQAFramework, List<AbstractThreshold> thresholdsDesc)
public hudson.model.Action getProjectAction(hudson.model.AbstractProject<?,?> project)
getProjectAction
in interface hudson.tasks.BuildStep
getProjectAction
in class hudson.tasks.BuildStepCompatibilityLayer
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
protected void copyResourcesToArtifactsDir(String pattern, hudson.model.Run<?,?> build, hudson.FilePath workspace, hudson.model.TaskListener listener) throws IOException, InterruptedException
IOException
InterruptedException
protected boolean evaluate(PRQAReading previousStableComplianceStatus, List<? extends AbstractThreshold> thresholds, PRQAComplianceStatus currentComplianceStatus)
protected boolean isBuildStableForContinuousImprovement(AbstractThreshold threshold, PRQAComplianceStatus currentComplianceStatus, PRQAComplianceStatus previousComplianceStatus)
public void perform(@Nonnull hudson.model.Run<?,?> run, @Nonnull hudson.FilePath workspace, @Nonnull hudson.Launcher launcher, @Nonnull hudson.model.TaskListener taskListener) throws InterruptedException, IOException
perform
in interface jenkins.tasks.SimpleBuildStep
InterruptedException
IOException
public EnumSet<PRQAContext.QARReportType> getChosenReportTypes()
public void setChosenReportTypes(EnumSet<PRQAContext.QARReportType> chosenReport)
public boolean enter()
public int getThresholdLevel()
Copyright © 2016–2022. All rights reserved.