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

AnsibleLintParser does not recognize warnings since ansible-lint v6.1.0 or later

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • analysis-model
    • None

      Starting with ansible-lint version 6.1.0, the output format in PEP8 style has changed:

      Old style:

      roles/create_service/tasks/main.yml:41: no-changed-when Commands should not change things if nothing needs doing.

      New style:

      roles/create_service/tasks/main.yml:41: no-changed-when: Commands should not change things if nothing needs doing.

       

      Difference: After name of linting rule is a additional colon before the role explanation.

      The change in ansible lint is introduced in commit https://github.com/ansible/ansible-lint/commit/e6d4c5933fe83adb4e3c610dc02c8d2df0d79ab5

       

      Steps to reproduce: Run ansible-lint -p in ansible project with warnings:

      sh 'ansible-lint -p > ansiblelint_results.txt || exit 0'
      recordIssues(tools: [ansibleLint(pattern: 'ansiblelint_results.txt')], ...)
      

       

          [JENKINS-68740] AnsibleLintParser does not recognize warnings since ansible-lint v6.1.0 or later

          Tobias Ullerich created issue -

          Hi drulli,

          I prepared a pull request for this issue on github https://github.com/jenkinsci/analysis-model/pull/804. I would appreciate any review or feedback.

          Best regards,
          Tobias

          Tobias Ullerich added a comment - Hi drulli , I prepared a pull request for this issue on github https://github.com/jenkinsci/analysis-model/pull/804 . I would appreciate any review or feedback. Best regards, Tobias
          Ulli Hafner made changes -
          Assignee Original: Ulli Hafner [ drulli ] New: Tobias Ullerich [ tobisan ]
          Ulli Hafner made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Ulli Hafner made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Ulli Hafner made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]
          Ulli Hafner made changes -
          Released As New: https://github.com/jenkinsci/analysis-model/releases/tag/v10.11.0
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

            tobisan Tobias Ullerich
            tobisan Tobias Ullerich
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: