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

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

XMLWordPrintable

    • 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')], ...)
      

       

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

              Created:
              Updated:
              Resolved: