Skip to main content

Converts ansible-lint JSON output into GitLab friendly format (JUnit XML, Codeclimate)

Project description

Ansible Lint GitLab

The ansible-lint JSON output to GitLab friendly JUnit converter.

Installation

via pip:

pip install ansible-lint-gitlab

Updating

via pip:

pip install ansible-lint-gitlab --upgrade

Usage:

  • You can run ansible-lint -f json on your playbook(s) and redirect output to pipe
    ansible-lint playbook.yml -f json | ansible-lint-gitlab-ci -o ansible-lint-gitlab-ci.xml
    
  • You can use a temporary file to store the output of ansible-lint. After that run ansible-lint-gitlab and pass generated file to it
    ansible-lint -f json your_fancy_playbook.yml > ansible-lint.json
    ansible-lint-gitlab-ci ansible-lint.json -o ansible-lint-gitlab.xml
    

Output

  • If there are any lint errors, full JUnit XML will be created.
  • If there are no errors, empty JSON will be created.

License

The ansible-lint-gitlab-ci project is distributed under the [MIT] license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ansible_lint_gitlab-1.0.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ansible_lint_gitlab-1.0.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file ansible_lint_gitlab-1.0.0.tar.gz.

File metadata

  • Download URL: ansible_lint_gitlab-1.0.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.19

File hashes

Hashes for ansible_lint_gitlab-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bc2c79308a347c47aaca732540ad8ca790c15506fa863a652af6e0f9caba050b
MD5 aa85e06b8356693962e42ee67d829ae4
BLAKE2b-256 97f1d75e9336facc1fdfa0df7c4bdf62409da6b44bddc61667a714d7d6f96dd0

See more details on using hashes here.

File details

Details for the file ansible_lint_gitlab-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ansible_lint_gitlab-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d8d817bbf51191f620eed809d76e745a2c3aa946f78999ec8893f34e447f9c5c
MD5 7203998ed2affe6f9925c2cdd93ec49d
BLAKE2b-256 4f6376d460df113e311c50c50efe25ee13982c9a694bfc1171c6cf1a43602717

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page