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

Allow users to set root path of Pipeline workspaces on master server

XMLWordPrintable

      When configuring Jenkins for pipeline jobs, it would be nice if we could set which path on the master server the pipeline jobs created their workspaces in. By default the path is $JENKINS_HOME/workspace/$JOB_NAME.   Because this path is under the root of the jenkins installation there is increased risk that users/plugins find a way to break out of that workspace when the pipeline runs. Especially if they do something creative in groovy.

      It would also help adminsitrators organize their servers in a logical sense, for example for servers of very large job sizes, it would easier and cleaner to create a file mount on a remote NAS device if we could target where the pipeline workspaces were.

      As an example of a plugin that can accidently break out of the path with pipelines and can cause havoc on the JENKINS_HOME path see issue:  https://issues.jenkins-ci.org/browse/JENKINS-48434

            Unassigned Unassigned
            maxfields2000 Maxfield Stewart
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: