-
Bug
-
Resolution: Fixed
-
Major
-
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
[JENKINS-69936] PWD returning wrong path
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} |
Link |
New:
This issue is duplicated by |
Link |
New:
This issue is caused by |
Assignee | New: Jesse Glick [ jglick ] |
Component/s | New: workflow-durable-task-step-plugin [ 21715 ] | |
Component/s | Original: pipeline [ 21692 ] |
Labels | New: regression |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Remote Link | New: This issue links to "workflow-durable-task-step-plugin #270 (Web Link)" [ 28306 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Fixed but Unreleased [ 10203 ] |