-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
Jenkins version 2.426.3
Warning Plugin version 11.7.0
here is what in the declarative pipeline:
recordIssues(id:"TestNumber1",enabledForFailure: true,tools: [sarif(name:"Test Number One",pattern: "test-results/sarif/pc/*.sarif",reportEncoding: 'UTF-8')])
recordIssues(id:"TestNumber2",enabledForFailure: true,tools: [sarif(name:"Test Number Two",pattern: "test-results/sarif/tc/*.sarif",reportEncoding: 'UTF-8')])
Here is the error it keeps reporting about the ID already used. If I use freestyle it would work fine with the same test but it does not with declarative pipeline.
Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 711d6e09-73f2-4874-963a-342c99e9d76f java.lang.IllegalStateException: ID sarif is already used by another action: io.jenkins.plugins.analysis.core.model.ResultAction for Test Number One at io.jenkins.plugins.analysis.core.steps.IssuesPublisher.ensureThatIdIsUnique(IssuesPublisher.java:195) at io.jenkins.plugins.analysis.core.steps.IssuesPublisher.computeDelta(IssuesPublisher.java:139) at io.jenkins.plugins.analysis.core.steps.IssuesPublisher.attachAction(IssuesPublisher.java:92) at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.publishResult(IssuesRecorder.java:759) at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.record(IssuesRecorder.java:675) at io.jenkins.plugins.analysis.core.steps.IssuesRecorder.perform(IssuesRecorder.java:637) at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:648) at io.jenkins.plugins.analysis.core.steps.RecordIssuesStep$Execution.run(RecordIssuesStep.java:606) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:842)
- duplicates
-
JENKINS-55445 Use the ID parameter in recordIssues even when using a single tool
- Open