-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major
-
Component/s: workflow-durable-task-step-plugin
-
Environment:Jenkins 2.373
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()
        }
      }
    }
  }
}
Â
- is caused by
-
JENKINS-49707 Auto retry for elastic agents after channel closure
-
- Resolved
-
- is duplicated by
-
JENKINS-69933 nested node() and dir() steps lead to invalid working directory
-
- Resolved
-
-
JENKINS-69884 dir command fails with interleaved node commands
-
- Resolved
-
- relates to
-
JENKINS-70528 node / dir / node on same agent sets PWD to that of dir rather than @2 workspace
-
- Resolved
-
- links to