Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-75087

Provide way to disable mounting Jenkins workspace

      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'
      }
      

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

          Mark R created issue -
          Mark R made changes -
          Description Original: 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:

          {code:java}
          docker.image('myregistry.com/myrepository/myimage:latest').inside(mountWorkspace=false) {
              sh 'echo test'
          }
          {code}
          New: 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:

          {code:java}
          docker.image('myregistry.com/myrepository/myimage:latest').inside(mountWorkspace=false) {
              bat 'echo test'
          }
          {code}
          Mark R made changes -
          Link New: This issue relates to JENKINS-74912 [ JENKINS-74912 ]

            Unassigned Unassigned
            mrichar2 Mark R
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: