Skip to main content

apx-jenkins

Jenkins for Action Platform: access management through Role-based Authorization Strategy, and read-only tools for jobs, builds and the build queue.

Install

action-platform plugin install jenkins

Then fill the options under Plugins, Configure on the platform, or on a machine either export the AP_JENKINS_* variables or store the options (~/.action-platform/plugins/jenkins.json).

Option Environment variable What
url AP_JENKINS_URL The controller's address, e.g. https://jenkins.example.com
user AP_JENKINS_USER The Jenkins user id the token belongs to
token AP_JENKINS_TOKEN That user's API token (user menu, Security, API Token)

On a machine the tools and commands read the environment variable first and the options file second. The access capability reads only the options, so a platform keeps the credentials sealed.

What the token needs

  • Tools and commands: the user must be able to read the jobs, builds and queue it asks for. They never write.
  • Access: the user must be a Jenkins administrator (Overall/Administer), the Role-based Authorization Strategy plugin installed, and selected under Manage Jenkins, Security, Authorization. Without it the provider answers with what to install.

Access

The plugin gives the platform's service access a jenkins service: who holds which role, drift against the organization's mapping, and grants, revokes and syncs. Accounts are Jenkins user ids; group:<name> addresses a group.

Resource Levels What it is
global read, admin A global role named read (Overall/Read, View/Read) or admin (Overall/Administer)
folder/<name> read, build, configure An item role folder:<name>:<level> matching the folder and every job in it
global-role/<name> assigned A global role this plugin did not create
item-role/<name> assigned An item role this plugin did not create, such as one that opens a single job

Item roles hold these permissions, each level including the one before it:

Level Permissions
read Item/Read, Item/Discover
build read + Item/Build, Item/Cancel, Item/Workspace
configure build + Item/Configure, Item/Create, Item/Delete, Run/Delete, Run/Update
  • A folder is invisible without Overall/Read, so a folder grant also adds global read to the account.
  • A role the plugin needs is created on the first grant; a change of level assigns the new role and unassigns the old one.
  • Roles it did not create are read as global-role/<name> and item-role/<name> with level assigned, so an import records them and a sync leaves them alone.
  • An administrator can never be the last one: a change that would leave Jenkins without a global admin is refused before anything is sent.
  • Older versions of role-strategy without the user and group assignment calls are served through the generic assignRole.

Tools

MCP tools jenkins_* and the same reads under action-platform jenkins. All are read-only.

Tool Command Does
jenkins_jobs jenkins jobs [folder] The jobs of a folder, or of the root: kind, status and the last build's number, result, time and duration. Pass a job path to read that one job.
jenkins_build jenkins build <job> [number] [--lines N] One build, the last when no number is given: result, duration, what started it, branch and revision, and the last lines of its console (default 100, at most 2000) with the total.
jenkins_queue jenkins queue What waits in the build queue, since when and why.

A job is addressed by the path Jenkins shows in its URL without the job/ segments: team/app, team/app/main.

Develop

pip install -e ".[dev]"
ruff check . && ruff format --check . && pytest -q

tests/fake.py is a controller in memory that answers only what Jenkins answers. tests/live/ runs read-only against a real controller and is skipped unless AP_JENKINS_LIVE=1 and AP_JENKINS_URL, AP_JENKINS_USER and AP_JENKINS_TOKEN are set; it changes no role and starts no build.

Rules for contributors and agents are in AGENTS.md.

Metadata

Release files for apx-jenkins 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apx-jenkins 0.1.0
File Size Uploaded Provenance Actions
apx_jenkins-0.1.0.tar.gz 20.8 kB With provenance Details for apx_jenkins-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for apx-jenkins 0.1.0
File Interpreter ABI Platform Actions
apx_jenkins-0.1.0-py3-none-any.whl Python 3 none any Details for apx_jenkins-0.1.0-py3-none-any.whl

Total release size: 37.8 kB

Release files / apx_jenkins-0.1.0.tar.gz

Download URL apx_jenkins-0.1.0.tar.gz
Size 20.8 kB
Tags Source
SHA-256 checksum
How to use checksums
027d0bac09fc4b05ff2f6ca48fac0a497e065ef15250a29f0773986af4b1af63
BLAKE2b-256 checksum
How to use checksums
5a69034828fc60ad79bc611bf5fda557e8ef9453f72517add0710de5d8ff92b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / apx_jenkins-0.1.0-py3-none-any.whl

Download URL apx_jenkins-0.1.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7fd363548e7500a619216890c54d423f20fa79abd7e85653ba3ac2b59e5c036
BLAKE2b-256 checksum
How to use checksums
d616f221f3732b62d2f641a58d2dc7449ca09cb8188cc4e65107670cd0ac9a33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for apx-jenkins 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for apx_jenkins-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page