Integration: Jenkins
AI testing in Jenkins
Beta This integration is in beta and may change.
A Jenkins pipeline stage runs npx aitp run with AITP_TOKEN from Jenkins credentials. Jenkins support is in beta.
Add one job step to your Jenkins pipeline that runs npx aitp run with the tags you want, and pass AITP_TOKEN and your test credentials from Jenkins's secret store.
Exit codes follow the CLI: 0 pass, 1 fail, 2 healed steps pending review. The pipeline step fails on 1 and, with ci.failOnHealedPending: true, on 2.
Add --cloud to run in hosted browsers in the EU or US region, or leave it out to run in Chromium on the CI machine.
# AITP_TOKEN and test credentials come from Jenkins secretsnpx aitp run --tag smoke --cloudWhat Jenkins documents
- A Jenkinsfile is a text file that contains the definition of a Jenkins Pipeline and is checked into source control; the junit step, provided by the JUnit plugin, captures and processes test reports. [Jenkins]
Questions
Is Jenkins supported?
Yes, in beta. The pipeline runs the same CLI command as other CI systems; the node needs Node.js to run npx.
What does beta mean here?
It works and is available to early-access teams, and details may change before general availability.
Request early access
Early access: prices are the planned list prices. Billing starts when the platform enters beta; early-access use is not charged. We reply within 24 hours on business days.