Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import hudson.model.Result;
import hudson.model.Run;
import hudson.model.TaskListener;
import hudson.scm.SCM;
import hudson.tasks.BuildStepDescriptor;
import hudson.tasks.BuildStepMonitor;
import hudson.tasks.Publisher;
Expand All @@ -52,6 +51,7 @@
import io.jenkins.plugins.util.JenkinsFacade;

public class CoveragePublisher extends Recorder implements SimpleBuildStep {
private static final String CHECKS_DEFAULT_NAME = "Code Coverage";
private List<CoverageAdapter> adapters = new LinkedList<>();
private List<Threshold> globalThresholds = new LinkedList<>();

Expand All @@ -75,7 +75,7 @@ public class CoveragePublisher extends Recorder implements SimpleBuildStep {

private boolean skipPublishingChecks = false;

private String checksName = "Code Coverage";
private String checksName = CHECKS_DEFAULT_NAME;

@DataBoundConstructor
public CoveragePublisher() {
Expand Down Expand Up @@ -327,6 +327,9 @@ protected Object readResolve() {
if (scm == null) {
scm = StringUtils.EMPTY;
}
if (checksName == null) {
checksName = CHECKS_DEFAULT_NAME;
}
return this;
}

Expand Down