Fail fast with clear error when Jenkins root URL is missing - #142
Fail fast with clear error when Jenkins root URL is missing#142PiyushMalik01 wants to merge 4 commits into
Conversation
topikachu
left a comment
There was a problem hiding this comment.
Could you move this validation logic to the beginning of Endpoint#init so it fails fast during initialization?
Also, since this depends on the Jenkins root URL being properly configured, we should explicitly document that requirement in the README and explain how to set it.
Thanks
|
ok , I’ll push an update shortly |
|
@topikachu |
|
@topikachu I’ve added a section to the README documenting the Jenkins root URL requirement and how to configure it. Please let me know if the placement or wording looks good. |
70e80dc to
0d0d2d6
Compare
Fixes #114
What this PR does
When the Jenkins root URL is not configured, MCP tool calls currently fail with an unclear
serialization error that does not explain the real problem.
This PR adds an explicit check for a missing Jenkins root URL and returns a clear,
actionable error message that guides the user to fix the issue via
Manage Jenkins → Configure System.
This makes the failure easier to understand and avoids confusing low-level errors.
Testing done
Manually tested on a local Jenkins instance started with
mvn hpi:run.No automated tests were added since this behavior depends on Jenkins runtime configuration.
Submitter checklist