Generic CI Integration¶
Crossfire can be added to any CI pipeline.
Installation¶
Usage¶
Exit codes¶
| Code | Meaning |
|---|---|
0 |
Clean — no issues found |
1 |
Duplicates found (with --fail-on-duplicate) |
2 |
Input error (invalid file, bad regex) |
3 |
Runtime error |
Examples¶
GitLab CI¶
rule-check:
image: python:3.12
script:
- pip install crossfire-rules
- crossfire compare rules/*.json --fail-on-duplicate --format summary
Jenkins¶
stage('Rule Overlap Check') {
sh '''
pip install crossfire-rules
crossfire compare rules/*.json --fail-on-duplicate --format summary
'''
}