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

Mutibranch project plugin does not respect "Workspace Root Directory" global configuration

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The multibranch project plugin always creates the workspaces to build the branches in "${JENKINS_HOME}/jobs/your-multi-branch-project/branches/${branchNameEncoded}/workspace", however our configuration has the workspaces on a different drive with much more space, so WORKSPACE is not on the same drive as JENKINS_HOME.

      This is configured in the global config->Workspace Root Directory (under advanced below Home Directory).

      Please use "${Workspace Root Directory}/${branchNameEncoded}/workspace" or something similar instead.

        Attachments

          Issue Links

            Activity

            Hide
            morganr Richard Morgan added a comment -

            IIUC the a master with zero executors will still retrieve the entire repository into the master's workspace directories for each Jenkinsfile it wants to read. I'm seeing this with Jenkins 2.19.4, Branch API Plugin 1.11.1, Git plugin 3.0.1.

            Show
            morganr Richard Morgan added a comment - IIUC the a master with zero executors will still retrieve the entire repository into the master's workspace directories for each Jenkinsfile it wants to read. I'm seeing this with Jenkins 2.19.4, Branch API Plugin 1.11.1, Git plugin 3.0.1.
            Hide
            jglick Jesse Glick added a comment -

            will still retrieve the entire repository into the master's workspace directories for each Jenkinsfile it wants to read

            Not if you update workflow-multibranch and meet the conditions mentioned in its release notes. Anyway that is off topic here.

            Show
            jglick Jesse Glick added a comment - will still retrieve the entire repository into the master's workspace directories for each Jenkinsfile it wants to read Not if you update workflow-multibranch and meet the conditions mentioned in its release notes. Anyway that is off topic here.
            Hide
            jglick Jesse Glick added a comment -

            Alternate PR 103.

            Show
            jglick Jesse Glick added a comment - Alternate PR 103.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Jesse Glick
            Path:
            src/main/java/jenkins/branch/WorkspaceLocatorImpl.java
            src/test/java/jenkins/branch/WorkspaceLocatorImplTest.java
            http://jenkins-ci.org/commit/branch-api-plugin/4bf7c68f06cf3b2c39b553e686f6e828630ed593
            Log:
            JENKINS-38837 Adjust multibranch workspace calculation on master to match customized workspaceDir.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: src/main/java/jenkins/branch/WorkspaceLocatorImpl.java src/test/java/jenkins/branch/WorkspaceLocatorImplTest.java http://jenkins-ci.org/commit/branch-api-plugin/4bf7c68f06cf3b2c39b553e686f6e828630ed593 Log: JENKINS-38837 Adjust multibranch workspace calculation on master to match customized workspaceDir.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Stephen Connolly
            Path:
            src/main/java/jenkins/branch/WorkspaceLocatorImpl.java
            src/test/java/jenkins/branch/WorkspaceLocatorImplTest.java
            http://jenkins-ci.org/commit/branch-api-plugin/16108110bf6e508ccce5bc5102688f35c5bc4287
            Log:
            Merge pull request #103 from jglick/customMasterDir-JENKINS-38837

            JENKINS-38837 Handle custom master workspace directory

            Compare: https://github.com/jenkinsci/branch-api-plugin/compare/bb1f94f98f51...16108110bf6e

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephen Connolly Path: src/main/java/jenkins/branch/WorkspaceLocatorImpl.java src/test/java/jenkins/branch/WorkspaceLocatorImplTest.java http://jenkins-ci.org/commit/branch-api-plugin/16108110bf6e508ccce5bc5102688f35c5bc4287 Log: Merge pull request #103 from jglick/customMasterDir- JENKINS-38837 JENKINS-38837 Handle custom master workspace directory Compare: https://github.com/jenkinsci/branch-api-plugin/compare/bb1f94f98f51...16108110bf6e

              People

              • Assignee:
                jglick Jesse Glick
                Reporter:
                contewit Brenden Conte
              • Votes:
                12 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: