Hatchyard

Platform tool

Jenkins

by Hatch Work · v2.580.3 · MIT

Builds and checks the code in your Gitea: secrets, vulnerable packages and code findings on every push; container images built in the cluster and handed to ArgoCD when the policy allows.

What it installs

  • Jenkins platform tool

    Installed once per stack in its own namespace and shared by every app.

What it can access

Worked out from the manifest, not taken from the publisher's word.

  • NetworkInternet-facing over HTTPS at jenkins.<your domain>, behind its own sign-in.
  • Your credentialsNone. It asks for no keys or passwords of yours.
  • Secrets it makesadmin-password, scans-key (a gateway key that may only scans:report, registry:push); keys from its setup job: admin-basic. Kept in the gateway's secret store, never shown to your AI.
  • Clusterapp-pull-secrets: the only rights it has outside its own namespace.
  • NeedsGitea, ArgoCD, Registry, installed first.
  • BackupsIts data is in the stack's encrypted backups.
  • AI tools6 tools, each listed with its inputs under Tools your AI gets. A key only reaches the ones its rights open.

Security

What runs, and how it is fenced in.

Not verified yet. It ships inside this Hatchyard release and passed the catalog's checks: a pinned chart, declared hosts, and tools that only reach their own secrets.

  • InstallsThe jenkins Helm chart, version 5.8.44, pinned. From https://charts.jenkins.io
  • Its own spaceIts own namespace, removed with it. Only the hosts above are published.

Setup

Automatic: Hatchyard does the first-run setup.

  • First runOnce its pods are ready, a setup job makes the limited accounts and keys the gateway uses (admin-basic). They stay in the gateway's secret store; your AI never sees them.
  • SettingsAsked when you install it: skip_orgs.

Tools your AI gets

6 tools, 4 read, 2 write

Your AI reaches these through the stack's AI gateway, at one MCP address. Each key gets only the rights you tick on Connect your AI, and every call is logged.

Jenkins · read

read needs jenkins:read · 4 tools

jenkins.jobs_listread

List the jobs Jenkins knows (audit, build) and whether their last run passed.

No inputs.

Example call
{
  "method": "tools/call",
  "params": {
    "name": "jenkins.jobs_list",
    "arguments": {}
  }
}

jenkins.builds_listread

Recent runs of a job, newest first, with their result.

InputTypeRequiredDescription
jobstringrequiredThe job: audit or build
Example call
{
  "method": "tools/call",
  "params": {
    "name": "jenkins.builds_list",
    "arguments": {
      "job": "<job>"
    }
  }
}

jenkins.build_statusread

One run of a job: result, how long it took, and what it was building.

InputTypeRequiredDescription
jobstringrequiredThe job: audit or build
numberintegerrequiredThe run number
Example call
{
  "method": "tools/call",
  "params": {
    "name": "jenkins.build_status",
    "arguments": {
      "job": "<job>",
      "number": 1
    }
  }
}

jenkins.build_logread

The console output of one run (the gateway returns at most 1 MiB).

InputTypeRequiredDescription
jobstringrequiredThe job: audit or build
numberintegerrequiredThe run number
Example call
{
  "method": "tools/call",
  "params": {
    "name": "jenkins.build_log",
    "arguments": {
      "job": "<job>",
      "number": 1
    }
  }
}

Jenkins · build

write needs jenkins:build · 2 tools

jenkins.build_startwrite

Start the build job for a commit and return its queue_id; the build pushes an image, scans it, and hands it to the repository's ArgoCD application (named <org>-<repo>, with dots and underscores as dashes, and created with source_repo) when the policy allows.

InputTypeRequiredDescription
REFstringrequiredrefs/heads/<branch>
REPO_FULL_NAMEstringrequiredorg/repo on the Gitea
SHAstringrequiredThe commit, 40 hex characters
contextstringoptionalThe build context, a relative directory inside the repository (default the repository root, or .hatchyard/pipeline.yaml)
dockerfilestringoptionalThe Dockerfile, a relative path inside the repository (default Dockerfile, or .hatchyard/pipeline.yaml)
Example call
{
  "method": "tools/call",
  "params": {
    "name": "jenkins.build_start",
    "arguments": {
      "REF": "<REF>",
      "REPO_FULL_NAME": "<REPO_FULL_NAME>",
      "SHA": "<SHA>",
      "context": "<context>",
      "dockerfile": "<dockerfile>"
    }
  }
}

jenkins.build_waitwrite

Wait up to timeout_seconds (default 50, at most 300) for a started build and return its result, build number and last 50 log lines, or state running, in which case call it again with the same id.

InputTypeRequiredDescription
jobstringoptionalThe job, default build; only with number
numberintegeroptionalA run number to wait for instead of a queue_id
queue_idintegeroptionalThe queue_id that build_start returned
timeout_secondsintegeroptionalSeconds to wait in this call, default 50, at most 300
Example call
{
  "method": "tools/call",
  "params": {
    "name": "jenkins.build_wait",
    "arguments": {
      "job": "<job>",
      "number": 1,
      "queue_id": 1,
      "timeout_seconds": 1
    }
  }
}