Declarative pipeline: Shares customWorkspace across nodes on nfs

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major
    • Component/s: pipeline
    • None
    • Environment:
      Jenkins 2.426.3

      Our declarative pipelines use this:

          agent {
              node {
                  label 'my-label'
                  customWorkspace "/path/to/workspace/work"
              }
          }
      

      where the customWorkspace points to a nfs share.

      It correctly creates the @1, @2, ... directories as needed.

      When the label only matches one node we never see a problem, but if that label matches many nodes we see it use the same workspace (with our without @n) for builds running at the same time on different nodes.

      I tried to get around this using NODE_NAME in the customWorkspace but that is null as mentioned in JENKINS-66289

            Assignee:
            Unassigned
            Reporter:
            Jim Searle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: