-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add job name to in log file #22
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
base: main
Are you sure you want to change the base?
Conversation
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.
Pull Request Overview
This PR adds job name context to log entries throughout the explain error plugin to improve debugging when multiple jobs are running concurrently. The key change introduces job context information in the format [JobName #BuildNumber]
to logging messages and UI titles.
- Created a new
JobContextUtil
class for standardized job context formatting - Updated all logging statements to include job context information
- Modified UI elements to display job context in card titles
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
JobContextUtil.java | New utility class for creating standardized job context strings |
JobContextUtilTest.java | Comprehensive test coverage for the JobContextUtil functionality |
ErrorExplanationAction.java | Added getJobContext() method to provide job context for UI display |
ErrorExplanationActionTest.java | Added tests for job context functionality |
BaseAIService.java | Updated to accept Run parameter and include job context in logging |
AIService.java | Added overloaded method to support job context parameter |
ErrorExplainer.java | Updated all logging statements to include job context |
ConsolePageDecorator.java | Added getJobContext() method for console page job context |
ConsoleExplainErrorAction.java | Updated logging to include job context |
ConsoleExplainErrorActionFactory.java | Updated error logging to include job context |
index.jelly | Modified card title to display job context |
footer.jelly | Updated card titles to include job context |
src/main/java/io/jenkins/plugins/explain_error/ErrorExplainer.java
Outdated
Show resolved
Hide resolved
…java Co-authored-by: Copilot <[email protected]>
closes #21
Testing done
Submitter checklist