-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Return root stages if they have child steps. #377
Conversation
if (errorAction != null) { | ||
// If this is a Jenkins failure exception, then we don't need to add a new node | ||
// - it will come from an existing step if there is a stage for the step to be part of. | ||
if (hasStage && PipelineNodeUtil.isJenkinsFailureException(errorAction.getError())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this will fix it for no stages, but does this fix withCredentials
in a stage? I think that's where I got stuck because its a block scoped step, it wasn't handled.
No, the step blocks aren't returned. This does fix the problem of the root Pipeline Start node being filtered out regardless of it it has a step (or exception). |
Makes sense I had a similar fix but stopped because of the above but this makes it a bit better so may as well proceed |
Return stages root if they have a child step - we cannot move those to a parent.
Fix for #357, fork of #363.
Testing done
Tested manually
Submitter checklist