Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73978

Declarative pipeline keep complains of ID sarif already used

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • warnings-ng-plugin
    • 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)

            drulli Ulli Hafner
            haixu2000 Hai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: