jenkinsci / jenkinsci/docker-workflow-plugin

[JENKINS-75087] Provide way to disable mounting Jenkins workspace

Open
#726 1 comment 0 reactions 0 assignees View on GitHub
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

Currently the Jenkins workspace is always mounted. This might not be desirable in all cases (such as JENKINS-74912). It also prevents users from using their own workdir parameter.

Provide a way do disable the default mounting of the workspace. Example:

docker.image('myregistry.com/myrepository/myimage:latest').inside(mountWorkspace=false) {

bat 'echo test'
}

---
Originally reported by mrichar2, imported from: Provide way to disable mounting Jenkins workspace


  • status: Open
  • priority: Minor
  • component(s): docker-workflow-plugin
  • label(s): docker-workflow-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07

Raw content of original issue

Currently the Jenkins workspace is always mounted. This might not be desirable in all cases (such as JENKINS-74912). It also prevents users from using their own workdir parameter.

Provide a way do disable the default mounting of the workspace. Example:


docker.image('myregistry.com/myrepository/myimage:latest').inside(mountWorkspace=false) {

bat 'echo test'
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.