Skip to content

Conversation

@mawinter69
Copy link
Contributor

fixes #53

Testing done

Interactive testing
Verified that after explaining an error via the UI and restarting Jenkins the explanation is still there.

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@mawinter69 mawinter69 marked this pull request as ready for review November 5, 2025 22:05
@mawinter69 mawinter69 requested a review from a team as a code owner November 5, 2025 22:05
TaskListener listener = getContext().get(TaskListener.class);

// Add console explain error action to build (if not already present)
if (run.getAction(ConsoleExplainErrorAction.class) == null) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Adding that action makes no sense. The factory will always add this action. Also for the step that action is not needed. It would only be persisted in the run without adding value.

@shenxianpeng shenxianpeng added the bug For changelog: Minor bug. Will be listed after features label Nov 5, 2025
Copy link
Member

@shenxianpeng shenxianpeng left a comment

Choose a reason for hiding this comment

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

Thanks!

@shenxianpeng shenxianpeng merged commit 6801f18 into jenkinsci:main Nov 5, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug For changelog: Minor bug. Will be listed after features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error Explanation for runs is lost after restart of Jenkins

2 participants