Open raymondhoagland opened 4 years ago
@raymondhoagland can you give me a sample pipeline I can test with?
node('master') {
stage('Test Autostatus') {
checkout scm
sh(script: "echo 'hello'", label: 'echo')
}
}
should be sufficient to show the issue - 3 statuses are reported for this pipeline
continuous-integration/jenkins/branch
- standard status from JenkinsTest Autostatus
- the actual stageecho
- the label of the shell stepThanks, that will make it easy to fix.
Thanks for the report. Fix upcoming
Awesome, thanks!
Fix should be in 3.6.2. Let me know if you continue to have issues.
DurableTaskSteps now support labels, but using a label results in a call to
FlowNode.addAction
causing the plugin to report the step as a stage.The plugin appears to recognize these steps are not really stages, as the status is set to pending early on but not marked successful/failed until the end of execution which leads me to believe it's getting resolved by the close method.
Because stages can be identified ahead of time for declarative pipelines unlike scripted pipelines, I presume they are unaffected.