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

warningsng (clang) puppetlint not parsing log file

XMLWordPrintable

      This may not be a puppetlint parser error directly.  I am starting to think this is a clang parser error as it seems the other format (bandit) I am having issues with also uses clang.

      Also of note, is the documentation for puppetlint, the format line does not agree with that of violations-lib.  Specifically, it is missing a space between kind and message however this does not seem to affect parsing.

      Relevant snippets/outputs from Jenkins

      sh """
          puppet-lint --log-format "%{path}:%{line}:%{column}: %{kind}: (%{check}) %{message}" ./manifests | tee puppetlint.log
      """
      
      recordIssues aggregatingResults: true,
          qualityGates: [[threshold: 1, type: 'TOTAL', unstable: false]],
          enabledForFailure: true,
          tools: [puppetLint(pattern: "puppetlint.log")]
      archiveArtifacts artifacts: "puppetlint.log"
      
      [Puppet Lint] Searching for all files in '/opt/trinity/jenkins/workspace/_puppet-blue_OSA-699-puppet-lint@2' that match the pattern 'puppetlint.log'
      [Puppet Lint] Traversing of symbolic links: enabled
      [Puppet Lint] -> found 1 file
      [Puppet Lint] Successfully parsed file /opt/trinity/jenkins/workspace/_puppet-blue_OSA-699-puppet-lint@2/puppetlint.log
      [Puppet Lint] -> found 0 issues (skipped 0 duplicates)
      [Puppet Lint] Successfully processed file 'puppetlint.log'
      [Puppet Lint] Skipping post processing
      [Puppet Lint] No filter has been set, publishing all 0 issues
      [Puppet Lint] Repository miner is not configured, skipping repository mining
      [Puppet Lint] Searching for all files in '/opt/trinity/jenkins/workspace/_puppet-blue_OSA-699-puppet-lint@2' that match the pattern 'puppetlint.log'
      [Puppet Lint] Traversing of symbolic links: enabled
      [Puppet Lint] -> found 1 file
      [Puppet Lint] Successfully parsed file /opt/trinity/jenkins/workspace/_puppet-blue_OSA-699-puppet-lint@2/puppetlint.log
      [Puppet Lint] -> found 0 issues (skipped 0 duplicates)
      [Puppet Lint] Successfully processed file 'puppetlint.log'
      [Puppet Lint] Skipping post processing
      [Puppet Lint] No filter has been set, publishing all 0 issues
      [Puppet Lint] Ignoring 'aggregatingResults' and ID 'null' since only a single tool is defined.
      [Puppet Lint] Searching for all files in '/opt/trinity/jenkins/workspace/_puppet-blue_OSA-699-puppet-lint@2' that match the pattern 'puppetlint.log'
      [Puppet Lint] Traversing of symbolic links: enabled
      [Puppet Lint] -> found 1 file
      [Puppet Lint] Successfully parsed file /opt/trinity/jenkins/workspace/_puppet-blue_OSA-699-puppet-lint@2/puppetlint.log
      [Puppet Lint] -> found 0 issues (skipped 0 duplicates)
      [Puppet Lint] Successfully processed file 'puppetlint.log'
      [Puppet Lint] Skipping post processing
      [Puppet Lint] No filter has been set, publishing all 0 issues
      [Puppet Lint] Repository miner is not configured, skipping repository mining
      [Puppet Lint] Reference build recorder is not configured
      [Puppet Lint] Obtaining reference build from same job (OSA-699-puppet-lint)
      [Puppet Lint] Using reference build 'Infrastructure/puppet-blue/OSA-699-puppet-lint #10' to compute new, fixed, and outstanding issues
      [Puppet Lint] Issues delta (vs. reference build): outstanding: 0, new: 0, fixed: 0
      [Puppet Lint] Evaluating quality gates
      [Puppet Lint] -> PASSED - Total (any severity): 0 - Quality Gate: 1
      [Puppet Lint] -> All quality gates have been passed
      [Puppet Lint] Health report is disabled - skipping
      [Puppet Lint] Created analysis result for 0 issues (found 0 new issues, fixed 0 issues)
      [Puppet Lint] Attaching ResultAction with ID 'puppetlint' to build 'Infrastructure/puppet-blue/OSA-699-puppet-lint #11'.
      [Checks API] No suitable checks publisher found. 

            drulli Ulli Hafner
            bmagistro Ben
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: