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

yamllint never finds issues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • warnings-ng-plugin
    • None
    • Various linux and Windows servers
      Jenkins 2.160+
    • 5.0.0 (analysis-model and warnings-ng)

      I have managed to get ansible-lint to report failures but the yamllint parser never works. It doesn't matter if I write to a log amd parse that, parse the console, separate scanning and publishng. The result is always no issues found.

      [Pipeline] { (Run yamllint)
      [Pipeline] sh
      14:41:07  + yamllint ./
      14:41:08  ./windows-utilities.yml
      14:41:08    6:1       error    too many blank lines (2 > 1)  (empty-lines)
      14:41:08    7:1       warning  comment not indented like content  (comments-indentation)
      14:41:08    7:2       warning  missing starting space in comment  (comments)
      14:41:08    9:1       error    too many blank lines (2 > 1)  (empty-lines)
      14:41:08    11:22     error    no new line character at the end of file  (new-line-at-end-of-file)
      14:41:08  
      [Pipeline] echo
      14:41:08  hudson.AbortException: script returned exit code 1
      [Pipeline] recordIssues
      14:41:08  Skipping issues blame since Git is the only supported SCM up to now.
      14:41:08  [YamlLint] Sleeping for 5 seconds due to JENKINS-32191...
      14:41:13  [YamlLint] Parsing console log (workspace: '/var/lib/jenkins/workspace/CC3')
      14:41:13  [YamlLint] Attaching ResultAction with ID 'yamllint' to run 'CC3 #21'.
      14:41:13  [YamlLint] Using reference build 'CC3 #20' to compute new, fixed, and outstanding issues
      14:41:13  [YamlLint] Issues delta (vs. reference build): outstanding: 0, new: 0, fixed: 0
      14:41:13  [YamlLint] Evaluating quality gates
      14:41:13  [YamlLint] -> PASSED - Total number of issues (any severity): 0 - Quality QualityGate: 1
      14:41:13  [YamlLint] -> All quality gates have been passed
      14:41:13  [YamlLint] Health report is disabled - skipping
      14:41:13  [YamlLint] Created analysis result for 0 issues (found 0 new issues, fixed 0 issues)
      [Pipeline] } 

      This run reports 5 problems which aren't detected. Numerous hours of testing have resulted in zero detections so it seems broken.

      I also tried setting gates. I'm not sure if I did that correctly as they are complicated, unclear and effectively undocumented, even on the wiki. These need to be documented thoroughly and clearly.

      Thanks.

       

            drulli Ulli Hafner
            ghs1 g hs1
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: