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

recordIssues - using tool instead of id for result url

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • warnings-ng-plugin
    • None
    • Warnings: 12.3.0
      Jenkins: 2.492.1
      Java: 21
      OS: windows agents, linux master

       

      Currently broken version

      Warnings: 12.3.0

      Jenkins: 2.492.1

      Last working version

      Warnings: unknown(sorry)

      Jenkins: 2.479.3

      Detailed description

      We use the following snippet multiple times in our pipeline:

      recordIssues (
          tools: [
              gcc(
                  id: 'C_' + build_type, 
                  name: 'C Compiler ' + build_type, 
                  pattern: 'logs/firmware_build/*'
              )
          ]
      )

      After the build is done, we get the correct names for the pages, however, all of them point to the same url: ".../job/development/510/gcc/". The same happens for doxygen tool. Every other tool is fine. We even have a single one that uses gcc that is working correctly:

       

      recordIssues (
          tools: [
              gcc(
                  id: 'C_unitytfw', 
                  name: 'C Unitytfw', 
                  pattern: '_build/unitytfw/**/*_unitytfw.log'
              )
          ]
      ) 

      I will also debunk the theory that it is due to the parameter, since we have non-parameterized snippets that get the same url as well:

       

       

      recordIssues (
          tools: [
              gcc(
                  id: 'C_release', 
                  name: 'C Compiler release', 
                  pattern: 'logs/firmware_build/*'
              )
          ]
      )  

       

      Screenshot shows all pages selected by the interface due to them sharing the same url:

      Every other instance we call the function in the same pipeline, it works as expected (pclint, taskScanner, groovyScript)

       

      As to which calls share the url, it is always the same ones. We have a multibranch pipeline, it is the same ones even on the branches. It is not the tools, since we have a call with gcc that works as intended.

      Problem summary

      For some cases (not all), recordIssues uses the tool name for the url instead of the id given, thus resulting in multiple uses of the same tool overwriting each other. This happens seemingly at random as to which calls share the url, but it is very consistent.

      Expected result

      The plugin should use the given id in the url consistently for every call.

       

            drulli Ulli Hafner
            lippaybalazs Lippay Balazs
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: