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

no graph displayed from warnings plugin in multi-branch-pipeline project

      I added the following to my jenkinsfile:
      stage ('Warnings gcc')

      { step([$class: 'WarningsPublisher', canComputeNew: false, canResolveRelativePaths: false, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', parserConfigurations: [[parserName: 'GNU Make + GNU C Compiler (gcc)', pattern: 'error_and_warnings.txt']], unHealthy: '']) }

      stage ('Warnings clang')

      { step([$class: 'WarningsPublisher', canComputeNew: false, canResolveRelativePaths: false, defaultEncoding: '', excludePattern: '', healthy: '', includePattern: '', messagesPattern: '', parserConfigurations: [[parserName: 'Clang (LLVM based)', pattern: 'error_and_warnings_clang.txt']], unHealthy: '']) }

      And get the logs ( Stage logs ):
      [WARNINGS] Parsing warnings in files 'error_and_warnings.txt' with parser GNU Make + GNU C Compiler (gcc)
      [WARNINGS] Finding all files that match the pattern error_and_warnings.txt
      [WARNINGS] Parsing 1 file in /home/jenkins/workspace/multibrach1_new_branch_001-BS43Z4K6ZIS5GYHNACODUZICSSNFL6N7QBEVH4WYM3M67DI7ZWWQ
      [WARNINGS] Successfully parsed file /home/jenkins/workspace/multibrach1_new_branch_001-BS43Z4K6ZIS5GYHNACODUZICSSNFL6N7QBEVH4WYM3M67DI7ZWWQ/error_and_warnings.txt with 0 unique warnings and 0 duplicates.
      [WARNINGS] Computing warning deltas based on reference build #1

      and for clang:
      [WARNINGS] Parsing warnings in files 'error_and_warnings_clang.txt' with parser Clang (LLVM based)
      [WARNINGS] Finding all files that match the pattern error_and_warnings_clang.txt
      [WARNINGS] Parsing 1 file in /home/jenkins/workspace/multibrach1_new_branch_001-BS43Z4K6ZIS5GYHNACODUZICSSNFL6N7QBEVH4WYM3M67DI7ZWWQ
      [WARNINGS] Successfully parsed file /home/jenkins/workspace/multibrach1_new_branch_001-BS43Z4K6ZIS5GYHNACODUZICSSNFL6N7QBEVH4WYM3M67DI7ZWWQ/error_and_warnings_clang.txt with 3 unique warnings and 0 duplicates.
      [WARNINGS] Computing warning deltas based on reference build #1

      Looks ok for me, but I see no results! There is no graph displayed! The graph for unit test results ( gtest ) works in this view!

          [JENKINS-39533] no graph displayed from warnings plugin in multi-branch-pipeline project

          Klaus Rudolph created issue -
          Klaus Rudolph made changes -
          Environment New: Jenkins 2.28
          Static Analysis Collector Plug-in 1.48
          Warnings Plug-in 4.57
          Matthew DeTullio made changes -
          Component/s New: workflow-multibranch-plugin [ 21465 ]
          Component/s Original: multi-branch-project-plugin [ 21127 ]
          Matthew DeTullio made changes -
          Assignee Original: Matthew DeTullio [ mjdetullio ] New: Ulli Hafner [ drulli ]
          Ulli Hafner made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-31202 [ JENKINS-31202 ]

            drulli Ulli Hafner
            krud Klaus Rudolph
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: