-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Major
-
Component/s: pipeline-model-definition-plugin
-
None
-
Environment: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