Skip to content

[JENKINS-54514] Document error handling in the 'parallel' step#260

Open
ringerc wants to merge 2 commits into
jenkinsci:masterfrom
ringerc:JENKINS-54514
Open

[JENKINS-54514] Document error handling in the 'parallel' step#260
ringerc wants to merge 2 commits into
jenkinsci:masterfrom
ringerc:JENKINS-54514

Conversation

@ringerc

@ringerc ringerc commented Nov 7, 2018

Copy link
Copy Markdown
Contributor

@jglick jglick changed the title Document error handling in the 'parallel' step [JENKINS-54514] Document error handling in the 'parallel' step Nov 7, 2018
@ringerc

ringerc commented Nov 7, 2018

Copy link
Copy Markdown
Contributor Author

The checks failed due to what appears to be network issues with the Windows builder.

@jglick jglick left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@bitwiseman

Copy link
Copy Markdown
Contributor

@ringerc What do you think of the suggestions?

@ringerc

ringerc commented Jun 15, 2019 via email

Copy link
Copy Markdown
Contributor Author

@bitwiseman

Copy link
Copy Markdown
Contributor

@ringerc Any update here? I'd apply the commits myself but I don't have permissions. I'd like to be able to merge this change.

@nickoe

nickoe commented Jun 18, 2020

Copy link
Copy Markdown

@ringerc @bitwiseman It looks like this has been lost in time.

@dwnusbaum dwnusbaum left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some comments. It would be great to also apply Jesse's comments/suggestions.

<code>Throwable.addSuppresssed(...)</code>.
</p>
<p>
Note that a <code>hudson.AbortException</code>, as thrown by failing

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AbortException is not necessarily thrown by failing steps.

I think mentioning AbortException is misleading since it doesn't have any special interaction with the parallel step.

the first failed script.
</p>
<p>
Note: Branch closures should just return <code>null</code>. The return

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this paragraph above the preceding one, and reword it slightly. Since we don't want anyone to rely on the current behavior I think it is best not to mention what that behavior is directly.

      Note: Branch closures should just return <code>null</code>. The return
      value of the <code>parallel</code> step should be ignored; See JENKINS-26033.

Co-authored-by: Jesse Glick <jglick@cloudbees.com>
Co-authored-by: Devin Nusbaum <dwnusbaum@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants