jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-55275] Should docker.withServer lead to pipeline log including used docker host?

Open
#593 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

component:docker-workflow-plugin enhancement imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
527
Forks
422
Avg merge
10m
Merged PRs (30d)
1

Description

In case of using "docker.withServer" in Jenkins pipeline the pipeline log in BlueOcean appears as if there was no "docker.withServer" at all, while in classic UI there is at least a hint on the usage of a docker server:

[Pipeline] withDockerServer
[Pipeline] {
[Pipeline] sh
+ docker run -d -P -v /dev/shm:/dev/shm --name jenkins2-selenium-node-chrome-908  acme/selenium-standalone-chrome:71
[Pipeline] dockerFingerprintRun
[Pipeline] sh
+ docker port a5665d29809712ec43a167c75173ba5e41dc333c98c3fa3359340206812818c0 4444

Would it be good to log something for the sake of easier tracibility!?

  • Maybe in classic UI log the used docker server:
    [Pipeline] withDockerServer mydocker.acme.com
    
    ```</li>
    	<li>What about Blue Ocean pipeline view/log?</li>
    </ul>
    
    
    ---
    <details><summary><i>Originally reported by <a href="https://issues.jenkins.io/secure/ViewProfile.jspa?name=reinholdfuereder">reinholdfuereder</a>, imported from: <a class="original-jira-link" href="https://issues.jenkins.io/browse/JENKINS-55275" target="_blank">Should docker.withServer lead to pipeline log including used docker host?</a></i></summary>
    <i><ul>
    <li><b>status</b>: Open
    <li><b>priority</b>: Minor
    <li><b>component(s)</b>: docker-workflow-plugin
    <li><b>resolution</b>: Unresolved
    <li><b>votes</b>: 0
    <li><b>watchers</b>: 1
    <li><b>imported</b>: 2025-12-07
    </ul></i>
    <details><summary>Raw content of original issue</summary>
    
    <pre>
    <p>In case of using "<tt>docker.withServer</tt>" in Jenkins pipeline the pipeline log in BlueOcean appears as if there was no "<tt>docker.withServer</tt>" at all, while in classic UI there is at least a hint on the usage of a docker server:</p>
    <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
    <pre>[Pipeline] withDockerServer
    [Pipeline] {
    [Pipeline] sh
    + docker run -d -P -v /dev/shm:/dev/shm --name jenkins2-selenium-node-chrome-908  acme/selenium-standalone-chrome:71
    [Pipeline] dockerFingerprintRun
    [Pipeline] sh
    + docker port a5665d29809712ec43a167c75173ba5e41dc333c98c3fa3359340206812818c0 4444
    </pre>
    </div></div>
    
    <p>Would it be good to log something for the sake of easier tracibility!?</p>
    <ul>
    	<li>Maybe in classic UI log the used docker server:
    <div class="preformatted panel" style="border-width: 1px;"><div class="preformattedContent panelContent">
    <pre>[Pipeline] withDockerServer mydocker.acme.com
    </pre>
    </div></div></li>
    	<li>What about Blue Ocean pipeline view/log?</li>
    </ul>
    </pre>
    </details>
    </details>

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the docker.withServer pipeline step and how its withDockerServer log entry is rendered in the classic UI and Blue Ocean. Determine where the configured Docker host can be exposed without leaking sensitive information, then verify that pipeline logs identify the used Docker server in the affected views.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, java
Domain
ci-cd, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.