opentelemetry-plugin
opentelemetry-plugin copied to clipboard
Capture declarative condition post conditions as spans (`always`, `cleanup`, `success`...)
Feature Request
Introduce wrapping spans for families of post conditions in declarative pipelines: always, changed, fixed, regression, aborted, success, unstable, unsuccessful, failure, cleanup.
- https://www.jenkins.io/doc/book/pipeline/syntax/#post-conditions
- https://www.jenkins.io/doc/pipeline/tour/post/
For instance:
pipeline {
agent any
stages {
stage ('Hello') {
steps {
echo "hello World"
}
}
}
post {
always {
sh 'echo "always"'
}
cleanup {
sh 'echo "cleanup"'
}
}
}
Produces:

Do you mean that you want to capture refinement under the a "Stage: Declarative: Post Actions" with wrapping spans to identify the "Always" and the "Success" steps?
The post action steps does not appear as steps in the pipeline steps so there is no flow-node to capture