Files
hello-world/README.md
T
john b504842293
ai/code-review No issues found
hello-world/pipeline/head This commit looks good
Switching to x.ai for reviews
2026-05-03 21:22:07 +01:00

563 B

Hello World C++ Project

Jenkins AI Review

The Jenkins pipeline can run an x.ai-powered review and report back to Gitea.

Required Jenkins secrets and variables:

  • XAI_API_KEY
  • GITEA_TOKEN
  • GITEA_URL

Optional variables:

  • AI_REVIEW_MODEL
  • XAI_MODEL
  • XAI_BASE_URL
  • AI_REVIEW_FAIL_ON_FINDINGS
  • GITEA_REPO_OWNER
  • GITEA_REPO_NAME
  • GITEA_PR_NUMBER

The default review model is grok-4.3, using the OpenAI Python SDK against https://api.x.ai/v1.

Build

cmake -S . -B build
cmake --build build
./build/hello_world