[JENKINS-72305] Fix permission for reset quality gate action #1642
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
ci-jenkins-io / CPD
CPD
LOW:
Found duplicated code.
Raw output
<pre><code>ResultAction resultAction = createResultAction(QualityGateStatus.PASSED, ID); FreeStyleBuild selectedBuild = attachReferenceBuild(true, false, resultAction, parent); when(selectedBuild.getActions(ResultAction.class)).thenReturn(Lists.list(resultAction)); assertThat(command.isEnabled(selectedBuild, ID)).isFalse(); } @Test void shouldBeDisabledIfNoResultAction() {<!-- --></code></pre>
ci-jenkins-io / CPD
CPD
LOW:
Found duplicated code.
Raw output
<pre><code>ResultAction resultAction = createResultAction(QualityGateStatus.PASSED, ID); FreeStyleBuild selectedBuild = attachReferenceBuild(true, false, resultAction, parent); when(selectedBuild.getActions(ResultAction.class)).thenReturn(Lists.list(resultAction)); assertThat(command.isEnabled(selectedBuild, ID)).isFalse(); } @Test void shouldBeDisabledIfNoResultAction() {<!-- --></code></pre>
ci-jenkins-io / CPD
CPD
LOW:
Found duplicated code.
Raw output
<pre><code>} private IssuesRow getIssuesModel(final AnalysisResult result, final int rowNumber) { IssuesDetail issuesDetail = result.getOwner().getAction(ResultAction.class).getTarget(); return (IssuesRow) issuesDetail.getTableModel("issues").getRows().get(rowNumber); }</code></pre>
ci-jenkins-io / CPD
CPD
LOW:
Found duplicated code.
Raw output
<pre><code>} private IssuesRow getIssuesModel(final AnalysisResult result, final int rowNumber) { IssuesDetail issuesDetail = result.getOwner().getAction(ResultAction.class).getTarget(); return (IssuesRow) issuesDetail.getTableModel("issues").getRows().get(rowNumber); }</code></pre>
Loading