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 jsonon your playbook(s) and redirect output to pipeansible-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 runansible-lint-gitlaband pass generated file to itansible-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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc2c79308a347c47aaca732540ad8ca790c15506fa863a652af6e0f9caba050b
|
|
| MD5 |
aa85e06b8356693962e42ee67d829ae4
|
|
| BLAKE2b-256 |
97f1d75e9336facc1fdfa0df7c4bdf62409da6b44bddc61667a714d7d6f96dd0
|
File details
Details for the file ansible_lint_gitlab-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ansible_lint_gitlab-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8d817bbf51191f620eed809d76e745a2c3aa946f78999ec8893f34e447f9c5c
|
|
| MD5 |
7203998ed2affe6f9925c2cdd93ec49d
|
|
| BLAKE2b-256 |
4f6376d460df113e311c50c50efe25ee13982c9a694bfc1171c6cf1a43602717
|