ID not used for action URL

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      Adding an id to either the recordIssues call, or the tools themselves seems to not be reflected in the URL of the action created.

      For example I have tried these configs (pulled from the graph view step name):

      {skipPublishingChecks=true, sourceCodeRetention=LAST_BUILD, sourceDirectories=[{path=glob:**/src}, {path=glob:**/vars}], qualityGates=[{criticality=FAILURE, integerThreshold=1, type=TOTAL}], name=Maven Issues, enabledForFailure=true, filters=[], id=maven, sourceCodeEncoding=UTF-8, tools=[@mavenConsole(id=maven,name=Maven Issues,reportEncoding=UTF-8)]} - Record compiler warnings and static analysis results 
      {skipPublishingChecks=true, sourceCodeRetention=LAST_BUILD, sourceDirectories=[{path=glob:**/src}, {path=glob:**/vars}], qualityGates=[{criticality=FAILURE, integerThreshold=1, type=TOTAL}], name=Maven Issues, enabledForFailure=true, filters=[], id=maven, sourceCodeEncoding=UTF-8, tools=[@mavenConsole(reportEncoding=UTF-8)]} - Record compiler warnings and static analysis results
      

      and

      {skipPublishingChecks=true, sourceCodeRetention=LAST_BUILD, sourceDirectories=[{path=glob:**/src}, {path=glob:**/vars}], qualityGates=[{criticality=FAILURE, integerThreshold=1, type=TOTAL}], enabledForFailure=true, filters=[], sourceCodeEncoding=UTF-8, tools=[@mavenConsole(id=maven,name=Maven Issues,reportEncoding=UTF-8)]} - Record compiler warnings and static analysis results 

      and for all of these the action path is `/maven-warnings`

      if I get the action and do `action.getId()` in the script console I see the id is `maven`, but if I call `action.getUrlName()` it returns `maven-warnings`, I believe this is to do with the implementation of `getParserId` and it preferring the parserId over the user set ID, and that being passed into the UrlName.

       

       

      What this means is if I have multiple reports using the same parser, say SARIF, on the same build, I cant see the dashboard for both of those reports

            Assignee:
            Ulli Hafner
            Reporter:
            Louis
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: