Since updating https://plugins.jenkins.io/workflow-durable-task-step/ to version: 1206.v8a_d5f86e336b, some of our jobs have been broken. We boiled it down to seemingly the wrong paths being set due to nodes.
      The following pipeline returns a folder on the node ElMo despite being preceeded by the "node('master')"
      This does not happen if we remove the "customWorkspace 'workspace/node_workspace'"  but we would like to still use this path.
      Before the update, pwd() in the post step would return a path on the master node.

      #!groovy
      pipeline
      {
          agent
          {
              node{
                  label 'ElMo'
                  customWorkspace 'workspace/node_workspace'
              }
          }
          stages
          {
              stage('stuff to do on worker node')
              {
                  steps
                  {
                      script
                      {
                          echo 'test'
                      }
                  }
              }
          }
          post
          {
              always
              {
                  node('master')
                  {
                      script
                      {
                          print 'current folder pwd(): '+pwd()
                      }
                  }
              }
          }
      }
        

          [JENKINS-69936] PWD returning wrong path

          Paul created issue -
          Paul made changes -
          Description Original: Since updating [https://plugins.jenkins.io/workflow-durable-task-step/] to version: 1206.v8a_d5f86e336b, some of our jobs have been broken. We boiled it down to seemingly the wrong paths being set due to nodes.
          The following pipeline returns a folder on the node ElMo despite being preceeded by the "{_}node('master'){_}"
          This does not happen if we leave the "{_}customWorkspace 'workspace/node_workspace'"{_}  but we would like to still use this path.
          Before the update, pwd() in the post step would return a path on the master node.
          {code:java}
          #!groovy
          pipeline
          {
              agent
              {
                  node{
                      label 'ElMo'
                      customWorkspace 'workspace/node_workspace'
                  }
              }
              stages
              {
                  stage('stuff to do on worker node')
                  {
                      steps
                      {
                          script
                          {
                              echo 'test'
                          }
                      }
                  }
              }
              post
              {
                  always
                  {
                      node('master')
                      {
                          script
                          {
                              print 'current folder pwd(): '+pwd()
                          }
                      }
                  }
              }
          }
            {code}
          New: Since updating [https://plugins.jenkins.io/workflow-durable-task-step/] to version: 1206.v8a_d5f86e336b, some of our jobs have been broken. We boiled it down to seemingly the wrong paths being set due to nodes.
          The following pipeline returns a folder on the node ElMo despite being preceeded by the "{_}node('master'){_}"
          This does not happen if we remove the "{_}customWorkspace 'workspace/node_workspace'"{_}  but we would like to still use this path.
          Before the update, pwd() in the post step would return a path on the master node.
          {code:java}
          #!groovy
          pipeline
          {
              agent
              {
                  node{
                      label 'ElMo'
                      customWorkspace 'workspace/node_workspace'
                  }
              }
              stages
              {
                  stage('stuff to do on worker node')
                  {
                      steps
                      {
                          script
                          {
                              echo 'test'
                          }
                      }
                  }
              }
              post
              {
                  always
                  {
                      node('master')
                      {
                          script
                          {
                              print 'current folder pwd(): '+pwd()
                          }
                      }
                  }
              }
          }
            {code}
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-69933 [ JENKINS-69933 ]
          Jesse Glick made changes -
          Link New: This issue is caused by JENKINS-49707 [ JENKINS-49707 ]
          Jesse Glick made changes -
          Assignee New: Jesse Glick [ jglick ]
          Jesse Glick made changes -
          Component/s New: workflow-durable-task-step-plugin [ 21715 ]
          Component/s Original: pipeline [ 21692 ]
          Jesse Glick made changes -
          Labels New: regression
          Jesse Glick made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Jesse Glick made changes -
          Remote Link New: This issue links to "workflow-durable-task-step-plugin #270 (Web Link)" [ 28306 ]
          Jesse Glick made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Jesse Glick made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]

            jglick Jesse Glick
            paul_lubos Paul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: