-
Bug
-
Resolution: Fixed
-
Major
-
None
-
pipeline-model-extensions v1.3
The following Jenkinsfile fails with
Error when executing always post condition:
org.jenkinsci.plugins.workflow.steps.MissingContextVariableException: Required context class hudson.FilePath is missing
pipeline { agent none stages { stage('Hello World') { agent any stages { stage('Nested') { steps { echo 'Hi!' } } } post { always { deleteDir() } } } } }
I would expect post to run on the node selected for the 'Hello World' stage as it does in the following, working example that does not utilize sequential stages:
pipeline { agent none stages { stage('Hello World') { agent any steps { echo 'Hi!' } post { always { deleteDir() } } } } }
- is related to
-
JENKINS-46809 Allow sequential stages inside parallel in Declarative syntax
-
- Closed
-
- links to
[JENKINS-52084] Sequential stages post section does not execute in the expected context
Link |
New:
This issue is related to |
Status | Original: Open [ 1 ] | New: In Progress [ 3 ] |
Status | Original: In Progress [ 3 ] | New: In Review [ 10005 ] |
Remote Link | New: This issue links to "PR #272 (Web Link)" [ 21111 ] |
Resolution | New: Fixed [ 1 ] | |
Status | Original: In Review [ 10005 ] | New: Resolved [ 5 ] |
Your expectations are correct - I'll have to reproduce this locally but assuming I can, this is definitely a bug.