Available on the Jenkins Update Center

Every build,
forged into a verdict.

ForgeAI puts eight AI analyzers inside your Jenkins pipeline. They review the code, hunt vulnerabilities, check the architecture, find test gaps, rate dependencies, read your commits and tune your Jenkinsfile. Then one composite score decides whether the build ships.

  • Jenkins 2.528.3+
  • MIT licensed
  • OpenAI · Claude · Ollama
PR-42 #3 · Success
8specialist analyzers
3provider types, plus your own
PRbuilds analyze only the files that changed
1composite score gates the release

Inside the forgeAI step

Four inputs.
Eight analyzers.
One verdict.

Each analyzer reads only what it needs from the workspace. Release Readiness then weighs every result, the step averages the scores, and your threshold decides the build. Select any box to trace its path.

From your workspace

Source filessourceGlob · only the changed files on pull requests
JenkinsfileJenkinsfile or .jenkins/Jenkinsfile
Dependency manifestspom.xml · build.gradle · package.json · go.mod · Cargo.toml · 5 more
Git historycommits since the base branch, or the last 20

Analyzers

code-review
vulnerability
architecture-drift
test-gaps
pipeline-advisor
dependency-risk
commit-intel

Verdict

release-readinessweighs every result before it
Composite score → quality gateaverage of all scores vs. your threshold
Report + return valuesbuild page · score trend · SARIF · compositeScore

● Analyzers run in parallel. Source too large for one request is split into parts of up to 60,000 characters, and each analyzer's parts are merged into one 1–10 score and one list of findings.

Analyzers

Eight specialists on every build.

Each analyzer runs with its own expert system prompt and returns a 1–10 score plus findings with a severity, the file and line, and a concrete fix. Turn any of them off globally in Manage Jenkins.

AI Code Review

code-review

Correctness, performance, readability, SOLID and DRY violations, error handling, naming and anti-patterns.

Reads Source files

Vulnerability Analysis

vulnerability

OWASP Top 10, hardcoded secrets, injection, path traversal, weak crypto, SSRF and unsafe deserialization, each mapped to a CWE ID.

Reads Source files

Architecture Drift

architecture-drift

Works out your intended architecture, then flags layer violations, circular dependencies, god classes and leaking API boundaries.

Reads Source files

Test Gap Analysis

test-gaps

Finds untested paths, missing boundary and error-case tests, and tests that assert nothing, then describes the tests to add.

Reads Source files

Dependency Risk

dependency-risk

Unpinned versions, copyleft license conflicts, unmaintained packages, duplicate libraries and deep transitive trees.

Reads Manifests

Commit Intelligence

commit-intel

Rates commit message quality and change cohesion, and catches breaking changes that nobody announced.

Reads Git history

Pipeline Advisor

pipeline-advisor

Reviews your Jenkinsfile for stages that could run in parallel, missing caches, absent timeouts and retries, and unsafe secret handling.

Reads Jenkinsfile

Release Readiness

release-readiness

Weighs every other result, security 3× and architecture 2×, into a release verdict and names the issues that should block it.

Reads All prior results

Quality gate

Ship on a score. Fail when the analysis fails.

Set a threshold, drag the scores, then break something. The result and the log lines follow the same rules as the forgeAI step.

Global setting in Manage Jenkins, or failOnCritical on the step.

Scores the LLM returns
Build result SUCCESS Report verdict SHIP IT

        

Pipelines inherit the global gate settings unless they pass failOnCritical or criticalThreshold. An analyzer that errors or returns unreadable output fails a gated build. It never passes as a neutral score.

Report

Every build leaves a report.

Every build that runs ForgeAI gets a ForgeAI Analysis page: the composite score, a verdict, each analyzer's score and every finding with its file, line and suggested fix. The job page charts the composite score across builds, so you can see quality move. Jenkins renders both itself, with no extra plugin. A self-contained HTML report is also written to forgeai-reports/ for archiving.

  • SHIP ITComposite score of 8 or more
  • CAUTION6 to 7.9
  • HOLD4 to 5.9
  • BLOCKBelow 4

Every run also writes forgeai-report.sarif, the standard format for static-analysis results. Pass it to the Warnings NG plugin to see each finding against its source line, with trend charts and Warnings NG's own quality gates. GitHub code scanning reads the same file.

recordIssues tool: sarif(
    pattern: report.sarifFile,
    id: 'forgeai', name: 'ForgeAI')
job/payments-service/128/forgeai-analysis/

ForgeAI Pipeline Intelligence Report

payments-service • Build #128 • 2026-10-28 14:02:11 UTC

Example report
8.3/ 10
Verdict
SHIP IT
Total findings
19
Critical / High
0 / 3
Analyzers run
8
AI Code Review9/10
Vulnerability8/10
Architecture Drift9/10
Test Gaps7/10
Dependency Risk8/10
Commit Intelligence9/10
Pipeline Advisor8/10
Release Readiness8/10

[HIGH] SQL query built by string concatenation

The order lookup appends a request parameter straight into the WHERE clause (CWE-89).

📄 src/main/java/com/acme/pay/OrderRepository.java (line 87)
💡 Use a PreparedStatement and bind customerId as a parameter.

[MEDIUM] Discount rules live in the controller

PricingController calculates discounts, so the web layer now owns business logic.

📄 src/main/java/com/acme/pay/web/PricingController.java (line 42)

LLM providers

Your model.
Your network.

Choose a provider in Manage Jenkins → System. API keys stay in Jenkins credentials as Secret Text, and Test Connection checks the setup before your first build.

OpenAI-compatible

Jenkins/v1/chat/completions

OpenAI, plus any server that speaks the same API: LM Studio, vLLM, LocalAI, Groq.

Default
gpt-4o
Auth
Bearer key, optional for local servers
Retries
429 and 5xx, 3 attempts, honors Retry-After

Anthropic Claude

Jenkins/v1/messages

Calls the Messages API directly, with a configurable endpoint for gateways and proxies.

Default
claude-opus-4-7
Auth
API key from a Secret Text credential
Retries
429, 529 and 5xx, 3 attempts, honors Retry-After

Ollama, fully local

Jenkins:11434

Runs on your own hardware for air-gapped teams. Point it at an Ollama server the Jenkins controller can reach.

Default
codellama:13b
Auth
None needed
Data
Your code never leaves your network

Bring your own

Jenkinsyour API

LLMProvider is a Jenkins extension point. Ship a provider in its own plugin and it appears in the provider list.

Extend
LLMProvider + descriptor
Config
Same form, same Test Connection
Core
No changes to ForgeAI needed

Pipeline syntax

One step, or one analyzer at a time.

forgeAI runs the full suite on your workspace. forgeAIScan runs a single analyzer on any text you hand it. Both return values your pipeline can branch on.

stage('ForgeAI') {
  steps {
    script {
      def report = forgeAI(
        analyzers: ['code-review', 'vulnerability', 'architecture-drift',
                    'test-gaps', 'dependency-risk', 'commit-intel',
                    'pipeline-advisor', 'release-readiness'],
        sourceGlob: 'src/main/java/**/*.java',
        contextInfo: 'Spring Boot service, hexagonal architecture',
        failOnCritical: true,
        criticalThreshold: 6
      )
      echo "Composite: ${report.compositeScore}/10"
      echo "Security:  ${report.vulnerabilityScore}/10"
      recordIssues tool: sarif(pattern: report.sarifFile,
                               id: 'forgeai', name: 'ForgeAI')
    }
  }
  post {
    always {
      archiveArtifacts artifacts: 'forgeai-reports/**', allowEmptyArchive: true
    }
  }
}

forgeAI returns

compositeScore
average of all analyzer scores
totalFindings
findings across analyzers
criticalCount
findings marked CRITICAL
analyzerCount
analyzers that produced a result
failedAnalyzers
analyzers that errored or returned unreadable output
analysisScope
changes or all, with filesAnalyzed and filesSkipped
sarifFile
path of the SARIF file, for recordIssues
<id>Score
per analyzer, e.g. report['code-reviewScore']

forgeAIScan returns

score · severity
1–10 and CRITICAL … INFO
summary
2–3 sentence overview
findingsCount
with criticalCount and highCount

Get started

Running in three steps.

  1. Install the plugin

    In Manage Jenkins → Plugins → Available plugins, search for ForgeAI Pipeline Intelligence and install it. Needs Jenkins 2.528.3 or newer.

  2. Connect a model

    Open Manage Jenkins → System → ForgeAI Pipeline Intelligence. Pick a provider, choose the Secret Text credential with your API key, and click Test Connection.

  3. Add the step

    Call forgeAI in any stage that has a workspace. The report lands in forgeai-reports/.

    forgeAI analyzers: ['code-review', 'vulnerability']

Want to see it first? The Docker quickstart starts Jenkins, ForgeAI and a local Ollama model with one docker compose up. No API key, and nothing leaves your machine.

Pair-programmed with Claude

ForgeAI was designed and built in collaboration with Claude, Anthropic's AI assistant, from the provider abstraction to every analyzer prompt. Meet Claude

Light the forge on
your next build.

Free and open source under the MIT License. Install it from the Jenkins Update Center in a minute.