Set up a Jenkins pipeline for CodeAnt CI scan.
Tip:
- In Manage Jenkins → Credentials, add a Secret text credential containing your token, and reference its ID under
credentials(...)
.- Jenkins automatically provides
$GIT_COMMIT
(the current commit SHA) when you use the Git plugin.- You can also set
REPO_NAME = env.GIT_URL.split(‘/’)[-2..-1].join(‘/’)
in ascript {}
block if you’d rather infer it dynamically.
curl
grabs start_scan.sh
from the CodeAnt CI endpoint.
/analysis/ci/scan
.