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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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