Preface¶
When using DeepSeek Harness (DSH) to write code and run agents, CI often lives on a separate Jenkins instance. Checking which stage a build has reached or why it failed usually means switching browsers, digging through console logs, and pasting snippets back into the conversation for the model to inspect. The plugin dsh-jenkins-plugin (maintained by Endless-zby, categorized as workflow in the community) connects Jenkins to the DSH Web GUI: a Jenkins panel appears in the right sidebar, pushing real-time progress for the jobs you follow as cards; when a build fails you can hand its logs to the model in the current session for diagnosis with one click. On the model side, it also provides a set of Jenkins tools that query jobs, read logs, trigger or cancel builds when policy and approvals allow. Below we describe the problems it solves, the capabilities it offers, and how to install and use it.
What is this¶
dsh-jenkins-plugin is a Jenkins integration plugin for DeepSeek Harness. Its npm package name is dsh-jenkins-plugin, the version referenced in the materials is 0.1.1, license MIT, source repository: https://github.com/Endless-zby/dsh-jenkins-plugin.
It mainly does two things:
- Web sidebar panel: provides a Jenkins tab in the right sidebar of
dsh web, displaying build status, stage progress and change descriptions for followed jobs via an SSE stream, and supports drilling down into history, details, console and artifacts within the panel, so most operations don’t require opening the Jenkins site itself. - Model tools: registers tools such as
jenkins_jobs,jenkins_build_statusandjenkins_logwith the current Harness session, so the model can proactively query Jenkins when operator approval and plugin policy permit.
Network requests are only sent to the Jenkins URL you configure in settings; credentials are resolved through the DSH credential service, and the plugin’s local $DSH_HOME/jenkins.json only stores the URL, account and credential reference name, not plaintext passwords.
Core features¶
Sidebar panel¶
The Jenkins panel contains two modules (names as referenced in the materials):
- Following: one card per followed job — status dot, build number, result label, live progress bar, name of the current running stage, change description for this build; the Maven project version reported by the controller is also shown if available. Data comes from SSE, not whole-page polling of Jenkins.
- All jobs: collapsed by default; a ☆/★ at the end of each row is used to follow or unfollow a job.
Clicking a job or card lets you drill down level by level within the panel: build history (paginated) → single build details (stage bar, embedded console, test summary, changeset, artifacts). Downloading artifacts is one of the few operations that opens a Jenkins page.
Write operations inside the panel follow a “button → inline confirmation → execute → show result in place” flow:
| Action | Description |
|---|---|
| Trigger build | Jobs with parameters get a KEY=VALUE input box |
| Rebuild | Failed builds only; reuses the parameters from the failed build |
| Abort | Disabled by default; requires enabling allowCancel in policy |
| Hand to AI | Failed builds only; sends the tail of the log, stages and changesets to the model in the current session, and the answer appears in the conversation |
For jobs listed in denyJobs, regardless of any toggles, the plugin will not make any requests to Jenkins.
Tools callable by the model¶
| Tool | Purpose |
|---|---|
jenkins_jobs |
Lists jobs and their status, optionally with recent build history |
jenkins_build_status |
Result, duration, pipeline stages, changesets, test summary of a single build |
jenkins_log |
Console log, reads the tail by default, can continue reading via next_offset |
jenkins_workspace |
Build workspace directory or artifact list (reading the workspace requires the Jenkins Workspace API plugin) |
jenkins_build |
Trigger or cancel builds — the only write tool; first passes denyJobs/allow.*, then requires operator approval |
Multi-instance and notifications¶
The settings page allows configuring multiple Jenkins controllers; a “test connection” is run for each row before saving, and if any row fails the entire save is rejected and nothing is written. The panel footer lets you switch instances, and the current instance is marked in green. The instance list and followed jobs are stored in $DSH_HOME/jenkins.json.
When a followed job’s build finishes, a single notification is sent through the platform’s own background task mechanism; the same build is not announced repeatedly.
Optional Failure wake (notifyWakeOnFailure, disabled by default): when a followed job fails, it automatically hands the same content as “Hand to AI” (log tail, stages, commit) to the session in which the job was followed; only real failure triggers it (unstable, aborted do not), each build wakes at most once; if the session is already closed it is silently skipped. allowAnalyze: false also disables this behavior.
Installation and enablement¶
The official recommendation is to install from npm; the package contains prebuilt artifacts so no compilation is needed at install time:
dsh plugin --profile web add dsh-jenkins-plugin
After installation, restart dsh web, open Settings → Jenkins, add an instance (URL, account, password or API token) and save; a Jenkins panel appears in the right sidebar.
Other installation methods (from the original materials):
# tarball (offline or internal distribution)
dsh plugin --profile web add ./dsh-jenkins-plugin-0.1.0.tgz
# from git source: the profile must allow the prepare script to build (pnpm ≥10 blocks it by default)
dsh plugin --profile web add github:<owner>/dsh-jenkins-plugin
Installing from git pulls the source rather than built artifacts; you need to allow that package’s prepare script in the profile’s pnpm-workspace.yaml:
allowBuilds:
dsh-jenkins-plugin: true
This allows the package’s code to execute locally at install time — only enable it for trusted source, and it is recommended to pin a commit: github:<owner>/dsh-jenkins-plugin#<sha>. If you don’t want to take on that step, use npm or a tarball instead.
Typical usage¶
- Keep an eye on builds daily: in All jobs, click ★ on the jobs you commonly use to add them to Following; while developing, watch the progress bar and stage names in the DSH Web sidebar, and receive a single completion notification when a build ends.
- Investigate failures: after a build fails, click Hand to AI, or rely on the enabled
notifyWakeOnFailure, to have the model in the current session explain the failure based on the default up to 16 KiB of failure logs (analyzeLogBytes), stages and changesets. - Let the model query CI: in the conversation, the model calls
jenkins_build_status,jenkins_log, etc.; triggering or canceling builds goes throughjenkins_build, which requires policy permission and operator approval. - Rerun with parameters: use Rebuild on a failed build, with parameters identical to the failed one; new builds can be triggered via Trigger in the panel with
KEY=VALUEfilled in.
The history list page for parameterized jobs also provides a parameter box and trigger controls (see the repository documentation screenshot at doc/panel-drilldown-1.png).
Permissions, risks and compatibility¶
Recommended reading before installing¶
- Write permissions: can trigger and cancel builds.
allowTriggeris enabled by default,allowCancelis disabled by default;denyJobshard-denies specified jobs (including entire folders). Model-side write operations additionally require approval; panel clicks also go through inline confirmation and policy checks. - Logs enter the model context: “Hand to AI” and
jenkins_logsend console logs as part of the prompt to the model. Jenkins logs are untrusted input and may contain arbitrary text aimed at the model; they should be treated as untrusted data. - Local state:
$DSH_HOME/jenkins.jsonand the DSH credential store; the plugin does not trigger builds on its own, only your clicks or explicit model calls will. - How the plugin runs: DSH plugins run with the permissions of the current
dshprocess; before installing, review the source code and the MIT license, and only configure Jenkins URLs you trust.
Versions and environment¶
The plugin and Harness correspondence referenced in the materials:
- Harness: built and validated against
0.1.6-alpha.2(bothengines.dshand the peer are locked to that version). - Node:
^22.19.0 || >=24.0.0, consistent with Harness. - Interface: the panel is part of the Web GUI (
dsh web), validated on the Web composition. - Jenkins: validated on Jenkins 2.176.2 (including FreeStyle and Maven jobs; the materials mention an instance with about 777 jobs). Degraded behaviors to be aware of:
- Pipeline stages rely on Blue Ocean’s
wfapi; without Pipeline, the stage list is empty and the card falls back to a duration estimate. - Without the Workspace API plugin,
jenkins_workspacewill clearly say so rather than pretending to succeed. - The Maven version comes from
mavenArtifacts/api/json, which only responds for Maven jobs.
Epilogue¶
If you want to develop with DSH Web while consolidating Jenkins CI progress, logs and failure diagnosis into the same interface, dsh-jenkins-plugin provides a sidebar real-time panel, one-click handover of failures to the model, and an approvable set of Jenkins tools. Community catalog page: https://www.skillhub.cn/plugins/Endless-zby/dsh-jenkins-plugin; detailed documentation and screenshots are in the GitHub README: https://github.com/Endless-zby/dsh-jenkins-plugin.