Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Component/s: pipeline-model-definition-plugin
-
Labels:None
-
Environment:pipeline-model-extensions v1.3
-
Similar Issues:
Description
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() } } } } }
Attachments
Issue Links
- is related to
-
JENKINS-46809 Allow sequential stages inside parallel in Declarative syntax
-
- Closed
-
- links to