promptfoo in CI/CD pipelines

Running promptfoo evals and red team scans in GitLab CI, Jenkins, Azure Pipelines and other CI systems, with pass-rate gates, caching and reports.

Running promptfoo in GitLab CI

A GitLab CI job for promptfoo evals: the Node.js image, caching the promptfoo cache directory between pipelines to cut API spend, masked variables for provider keys, and failing merge requests on regressions.

Running promptfoo in Jenkins pipelines

Adding promptfoo evals to a Jenkinsfile: Node.js on the agent, storing provider keys in Jenkins credentials, archiving HTML and JUnit results, and the agent problems that usually break the first run.

Running promptfoo in Azure Pipelines

An azure-pipelines.yml for promptfoo: secret pipeline variables for provider keys, publishing JUnit results with PublishTestResults, and matrix runs across models or prompt variants.

Running promptfoo in CircleCI

Configuring .circleci/config.yml to install and run promptfoo, cache LLM responses between builds, and keep provider keys in CircleCI contexts or project variables.

Running promptfoo in Travis CI

A .travis.yml for promptfoo evals on Node.js 24, environment variables for provider keys and storing result artifacts outside the build log.

Failing CI builds on promptfoo pass rates

Setting quality gates for LLM changes: exit codes, PROMPTFOO_PASS_RATE_THRESHOLD, when to allow a margin instead of zero failures, and how to stop flaky model-graded checks from blocking every merge.

Scheduling promptfoo red team scans in CI/CD

Running promptfoo red teams on a schedule or on release branches instead of every commit: cron triggers, tagging runs, regenerating versus reusing attack suites, and where results should go.

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.