-
Notifications
You must be signed in to change notification settings - Fork 174
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
JobsApi.build() error messages are not reported #16
Comments
With logging, we can see what Jenkins returns:
It is the HTML body content that could be returned in the response. |
Yeah this would be a perfect case for some some type of |
Thinking about it and studying code in jenkins-rest/bitbucket-rest as well. |
Can you explain the difference you are making between a |
@martinda I shouldn't have used the term And by "more generic" I only meant that |
It may help to look at the REST API build process in details:
Exposing the low level APIs with low level responses like It looks to me like doing both an |
I am attempting an implementation of |
Very cool and looks good so far. |
Functionality merged per #18 |
Expected Behavior
When launching a build with an invalid build name, errors reported by Jenkins should be passed along to the caller.
Current Behavior
When launching a build with an invalid build name, a null Integer is returned.
Context
When an invalid build name is passed, there is no indication as to what was wrong other than null being returned. This forces users to setup logging and re-run the program, something most end users find difficult to do and/or too costly.
As suggested in comment #14 (comment) it probably makes sense to return a RequestStatus response rather than a plain integer.
Steps to Reproduce (for bugs)
The following groovy code reproduces the problem:
It will print:
null
and there is no error message.Your Environment
Linux command line.
The text was updated successfully, but these errors were encountered: