Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
Jenkins 2.32.1
pipeline 2.4
kubernetes-plugin 0.10
Description
If pipeline has dir wrapper, i.e.
podTemplate(...) { node('pod') { container('mycontainer') { dir('my/dir/path') { sh 'ls -l' } } } }
shell step is still executed in the context of workspace root.
Same pipeline works as expected (within directory path specified by dir step) outside of kubernetes pod.
Attachments
Issue Links
- is duplicated by
-
JENKINS-43188 kubernetes-plugin: cd command in shell-skript
-
- Closed
-
- is related to
-
JENKINS-33510 dir('foo') inside "docker.image().inside{}" does not affect CWD of launched processes
-
- Resolved
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
If pipeline has *dir* wrapper, i.e. {code} podTemplate(...) { node('pod') { container('mycontainer') { dir('my/dir/path') { sh 'ls -l' } } } } {code} *shell* step is still executed in the context of workspace root. Same pipeline works as expected (within directory path specified by *dir* step) |
If pipeline has *dir* wrapper, i.e. {code} podTemplate(...) { node('pod') { container('mycontainer') { dir('my/dir/path') { sh 'ls -l' } } } } {code} *shell* step is still executed in the context of workspace root. Same pipeline works as expected (within directory path specified by *dir* step) outside of kubernetes pod. |
Link |
This issue is related to |
Resolution | Fixed [ 1 ] | |
Status | Open [ 1 ] | Closed [ 6 ] |
Link |
This issue is duplicated by |