Ai Agent Plugin banner
jenkinsci jenkinsci

Ai Agent Plugin

AI community

Description

Jenkins plugin: reusable AI Agent build step for Claude Code, Codex CLI, Cursor Agent, OpenCode, Antigravity CLI, Gemini CLI, and Grok Build

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

AI Agent

[![CI](https://github.com/jenkinsci/ai-agent-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/jenkinsci/ai-agent-plugin/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![Jenkins Plugin](https://img.shields.io/badge/Jenkins-2.528.3+-blue.svg)](https://www.jenkins.io/)

A Jenkins plugin that adds a reusable **Run AI Agent** build step for running autonomous coding agents (Claude Code, Codex CLI, Cursor Agent, OpenCode, Antigravity CLI, Gemini CLI, Grok Build) in Jenkins jobs and pipelines.

Plugin ID (artifactId): `ai-agent`

Features

  • Reusable build step — add Run AI Agent to Freestyle jobs or Pipeline via aiAgent(...).
  • Multiple agent support — Claude Code, Codex CLI, Cursor Agent, OpenCode, Antigravity CLI, Gemini CLI, and Grok Build.
  • Inline conversation view — live-streaming conversation on the build page with structured display of assistant messages, tool calls with inputs/outputs, and thinking blocks. Multiple invocations in the same build are shown as separate cards (latest expanded, older collapsible).
  • Markdown rendering — assistant and result messages are rendered as formatted HTML.
  • Approval gates — optionally pause builds for human review before tool execution.
  • Usage statistics — token counts, cost, and duration extracted from agent logs and displayed per build.
  • Codex controls — job-scoped ~/.codex/config.toml, global Codex args, and codex exec args for Codex runs.
  • Standard Jenkins integrations — SCM checkout, build triggers, credentials injection, post-build shell steps, and publishers.

Supported Agents

Agent Output Format Cost Tracking
Claude Code stream-json Full (tokens + cost)
Codex CLI JSON Tokens only
[Cursor Agent](https://www.cur