The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.
For a list of other such plugins, see the Pipeline Steps Reference page.
aiAgent: Run AI Agentagent (optional)
antigravityclaudeCodecodexadditionalExecArgs : String (optional)
codex exec --json --skip-git-repo-check and before the prompt. Use this for exec flags such as --ephemeral, --ignore-user-config, --ignore-rules, --add-dir path, --output-schema schema.json, or --color never. Arguments are split on whitespace.
additionalGlobalArgs : String (optional)
codex and before exec. Use this for global Codex flags such as --search, --profile ci, -c key=value, --enable feature, or --image path.png. Arguments are split on whitespace. Keep secrets in Jenkins credentials or config, not here.
customConfigEnabled : boolean (optional)
~/.codex/config.toml from the configured content. This is useful for per-build Codex settings and MCP configuration.
customConfigToml : String (optional)
~/.codex/config.toml. Stored in job configuration as plain text. Keep secrets in Jenkins credentials.
cursorgeminiCligrokopenCodeapiCredentialsId : String (optional)
ANTHROPIC_API_KEY, OPENAI_API_KEY, CURSOR_API_KEY, GEMINI_API_KEY, XAI_API_KEY). If empty, the build uses credentials already present on the node. Antigravity CLI uses node-level Google authentication by default and has no default API key environment variable. Authenticate the Jenkins service account before running a job.
apiEnvVarName : String (optional)
approvalTimeoutSeconds : int (optional)
commandOverride : String (optional)
disableInteractive : boolean (optional)
environmentVariables : String (optional)
KEY=VALUE format, one per line. Lines starting with # are ignored. These values are stored in plain text in job configuration.
executablePath : String (optional)
$HOME/.local/bin/codex. When empty, Jenkins resolves the default executable from the build node PATH. Interactive shell startup files are not loaded. Command override takes precedence over this setting.
extraArgs : String (optional)
--max-budget-usd 5 or --effort high. Arguments are split on whitespace. During ACP approval runs, the handler may reposition or ignore arguments that are incompatible with ACP or manual approvals.
failOnAgentError : boolean (optional)
model : String (optional)
claude-sonnet-4, gpt-5.5, gemini-2.5-pro, grok-4.5). For Codex, Claude Code, and OpenCode, append a recognized reasoning effort with a colon, such as gpt-5.6-sol:xhigh. Antigravity CLI and Grok Build accept low, medium, and high, such as grok-4.5:high. Other colon suffixes remain part of the model identifier. Use a double colon to keep a recognized suffix literal, such as provider/model::high for model provider/model:high. The separate Reasoning effort field overrides the shorthand. Leave empty to use the agent's default model.
prompt : String (optional)
reasoningEffort : String (optional)
model_reasoning_effort, Claude Code maps it to --effort, OpenCode maps it to --variant, and Antigravity CLI maps it to --effort. Grok Build maps it to --reasoning-effort. Common values include low, medium, high, xhigh, and max. Codex also supports ultra on compatible models, OpenCode supports minimal, and Antigravity CLI and Grok Build currently accept low, medium, and high. You can instead append a recognized value to the model, such as gpt-5.6-sol:xhigh. This field takes precedence over that shorthand. Unsupported agents ignore this field.
requireApprovals : boolean (optional)
setupScript : String (optional)
/bin/sh -e, so use POSIX syntax such as . file. Add #!/bin/bash or #!/bin/zsh before using shell-specific syntax such as source. This is currently supported on Unix agents only.
workingDirectory : String (optional)
yoloMode : boolean (optional)
Please submit your feedback about this page through this quick form.
Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?
See existing feedback here.