CI/CD Integration
CI/CD Integration
Section titled “CI/CD Integration”Integrate Arxo into your CI/CD pipeline to run Agent Architecture and OpenClaw Architecture analysis, enforce policy gates, and produce JSON or HTML reports.
Guides
Section titled “Guides”| Guide | Description |
|---|---|
| GitHub Actions | Basic setup, caching, reports, and PR comments |
| GitLab, Jenkins, CircleCI | GitLab CI, Jenkins, and CircleCI examples |
| Pre-commit Hooks | Run analysis before commits |
| Docker | Dockerfile and Docker Compose |
| Configuration & Tips | Config strategies, performance, notifications |
Exit codes
Section titled “Exit codes”| Exit Code | Meaning |
|---|---|
0 | Success — no violations |
1 | Policy violations detected |
2 | Configuration error |
3 | Analysis error |
4 | Invalid arguments |
# Fail on violationsarxo analyze || exit 1
# Fail fast (stop at first violation)arxo analyze --fail-fastBest practices
Section titled “Best practices”- Start with loose policies — Tighten gradually.
- Use a shared config — e.g.
.arxo.ci.yamlfor consistency. - Cache analysis results — Faster CI runs.
- Generate HTML reports — For visual debugging.
- Document policies — Why rules exist.
Troubleshooting
Section titled “Troubleshooting”- Analysis too slow — Exclude test/build directories in config; cache results; use
--pathfor a smaller subdirectory. - False positives — Adjust policy thresholds; exclude specific patterns.
- Memory issues — Exclude large dependencies; increase CI machine size.
IDE and MCP
Section titled “IDE and MCP”Use the MCP server to run analysis from your IDE or AI assistant. Ask: “Run architecture analysis on this project”. See MCP Workflows and analyze_architecture.
Next steps
Section titled “Next steps”- Configuration — Configure policies
- CLI Reference — Command options
- Policy Examples — Real-world policies
- Troubleshooting — Common issues