Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-72305] Fix permission for reset quality gate action #1642

Merged
merged 3 commits into from
Dec 22, 2023

Merge remote-tracking branch 'origin/main' into permission-reset-qual…

761589a
Select commit
Loading
Failed to load commit list.
Merged

[JENKINS-72305] Fix permission for reset quality gate action #1642

Merge remote-tracking branch 'origin/main' into permission-reset-qual…
761589a
Select commit
Loading
Failed to load commit list.
ci.jenkins.io / CPD succeeded Dec 22, 2023 in 0s

4 new issues, 303 total

Total New Outstanding Fixed Trend
303 4 299 2 👎

Reference build: Plugins » warnings-ng-plugin » main #12

Details

Severity distribution of new issues

Error Warning High Warning Normal Warning Low
0 0 0 4

Annotations

Check warning on line 81 in plugin/src/test/java/io/jenkins/plugins/analysis/core/model/ResetQualityGateCommandTest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / CPD

CPD

LOW:
Found duplicated code.
Raw output
<pre><code>ResultAction resultAction &#61; createResultAction(QualityGateStatus.PASSED, ID); FreeStyleBuild selectedBuild &#61; attachReferenceBuild(true, false, resultAction, parent); when(selectedBuild.getActions(ResultAction.class)).thenReturn(Lists.list(resultAction)); assertThat(command.isEnabled(selectedBuild, ID)).isFalse(); } &#64;Test void shouldBeDisabledIfNoResultAction() {<!-- --></code></pre>

Check warning on line 108 in plugin/src/test/java/io/jenkins/plugins/analysis/core/model/ResetQualityGateCommandTest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / CPD

CPD

LOW:
Found duplicated code.
Raw output
<pre><code>ResultAction resultAction &#61; createResultAction(QualityGateStatus.PASSED, ID); FreeStyleBuild selectedBuild &#61; attachReferenceBuild(true, false, resultAction, parent); when(selectedBuild.getActions(ResultAction.class)).thenReturn(Lists.list(resultAction)); assertThat(command.isEnabled(selectedBuild, ID)).isFalse(); } &#64;Test void shouldBeDisabledIfNoResultAction() {<!-- --></code></pre>

Check warning on line 272 in plugin/src/test/java/io/jenkins/plugins/analysis/warnings/steps/AffectedFilesResolverITest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / CPD

CPD

LOW:
Found duplicated code.
Raw output
<pre><code>} private IssuesRow getIssuesModel(final AnalysisResult result, final int rowNumber) { IssuesDetail issuesDetail &#61; result.getOwner().getAction(ResultAction.class).getTarget(); return (IssuesRow) issuesDetail.getTableModel(&#34;issues&#34;).getRows().get(rowNumber); }</code></pre>

Check warning on line 792 in plugin/src/test/java/io/jenkins/plugins/analysis/warnings/steps/MiscIssuesRecorderITest.java

See this annotation in the file changed.

@ci-jenkins-io ci-jenkins-io / CPD

CPD

LOW:
Found duplicated code.
Raw output
<pre><code>} private IssuesRow getIssuesModel(final AnalysisResult result, final int rowNumber) { IssuesDetail issuesDetail &#61; result.getOwner().getAction(ResultAction.class).getTarget(); return (IssuesRow) issuesDetail.getTableModel(&#34;issues&#34;).getRows().get(rowNumber); }</code></pre>