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

Local slave configuration cannot override global Dhudson.model.Slave.workspaceRoot setting

      Hello there,

      We are facing an issue with the global workspace root path settings.

      To bring more structure into our folder-structure I set the 

      -Dhudson.model.Slave.workspaceRoot

      Java variable to set a common path for all newly created slave machines.
      This solution worked well with standard slaves running on our "local" Linux nodes. However, we have also some remote slave nodes e.g. for MacOS builds which require custom workspace root paths.

      Running jobs on this slaves failed because the global workspace root setting was injected over the locally provided workspace path per slave.

      It seems that this per slave setting is overridden by the global setting no matter what.

      This is an undesirable behavior as global settings should have lower priorities over fine granular local settings focusing on a certain context.

       

      Please check this behavior and report back why this design decision was made and/or if this is an unintended bug.

      Best regards,
      Martin

          [JENKINS-53064] Local slave configuration cannot override global Dhudson.model.Slave.workspaceRoot setting

          Oleg Nenashev added a comment -

          > It seems that this per slave setting is overridden by the global setting no matter what.

          It is

          > This is an undesirable behavior as global settings should have lower priorities over fine granular local settings focusing on a certain context.

          System property is not just a global setting in Web UI. It is a system configuration flag, and such flags usually have higher priority in Jenkins so that admins can enforce particular policies they need.

          IMHO it is not a defect

           

          Oleg Nenashev added a comment - > It seems that this per slave setting is overridden by the global setting no matter what. It is > This is an undesirable behavior as global settings should have lower priorities over fine granular local settings focusing on a certain context. System property is not just a global setting in Web UI. It is a system configuration flag, and such flags usually have higher priority in Jenkins so that admins can enforce particular policies they need. IMHO it is not a defect  

            Unassigned Unassigned
            martinmajewski Martin Majewski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: