Skip to content

Commit

Permalink
Add missing property in step.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Jan 9, 2024
1 parent c34ddc5 commit 00fc354
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public class RecordIssuesStep extends Step implements Serializable {

private boolean isBlameDisabled;

private boolean skipPostProcessing; // @since 10.6.0: by default, post-processing will be enabled
private boolean skipPublishingChecks; // by default, checks will be published
private boolean publishAllIssues; // by default, only new issues will be published

Expand Down Expand Up @@ -878,6 +879,20 @@ public void setForensicsDisabled(final boolean forensicsDisabled) {
// do nothing
}

/**
* Returns whether post-processing of the issues should be disabled.
*
* @return {@code true} if post-processing of the issues should be disabled.
*/
public boolean isSkipPostProcessing() {
return skipPostProcessing;
}

@DataBoundSetter
public void setSkipPostProcessing(final boolean skipPostProcessing) {
this.skipPostProcessing = skipPostProcessing;
}

Check warning on line 894 in plugin/src/main/java/io/jenkins/plugins/analysis/core/steps/RecordIssuesStep.java

View check run for this annotation

ci.jenkins.io / CPD

CPD

NORMAL: Found duplicated code.
Raw output
<pre><code>} /** * Not used anymore. * * &#64;return {&#64;code true} if SCM forensics should be disabled * &#64;deprecated Forensics will be automatically skipped if the Forensics recorder is not activated. */ &#64;SuppressWarnings(&#34;PMD.BooleanGetMethodName&#34;) &#64;Deprecated public boolean getForensicsDisabled() { return false; } /** * Not used anymore. * * &#64;param forensicsDisabled * not used * * &#64;deprecated Forensics will be automatically skipped if the Forensics recorder is not activated. */ &#64;DataBoundSetter &#64;Deprecated public void setForensicsDisabled(final boolean forensicsDisabled) { // do nothing } /** * Returns whether post-processing of the issues should be disabled. * * &#64;return {&#64;code true} if post-processing of the issues should be disabled. */ public boolean isSkipPostProcessing() { return skipPostProcessing; } &#64;DataBoundSetter public void setSkipPostProcessing(final boolean skipPostProcessing) { this.skipPostProcessing &#61; skipPostProcessing; }</code></pre>

/**
* Returns whether publishing checks should be skipped.
*
Expand Down Expand Up @@ -1140,6 +1155,7 @@ protected List<AnalysisResult> run() throws IOException, InterruptedException {
recorder.setEnabledForFailure(step.getEnabledForFailure());
recorder.setAggregatingResults(step.getAggregatingResults());
recorder.setBlameDisabled(step.getBlameDisabled());
recorder.setSkipPostProcessing(step.isSkipPostProcessing());
recorder.setScm(step.getScm());
recorder.setSkipPublishingChecks(step.isSkipPublishingChecks());
recorder.setPublishAllIssues(step.isPublishAllIssues());
Expand Down

0 comments on commit 00fc354

Please sign in to comment.