You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having difficulty connecting to an enterprise Jenkins instance, and can't troubleshoot whether my credentials are invalid or unauthorized, since Jenkins.Init() doesn't tell me the status code, just that it failed.
Suggested change:
j.Version=rsp.Header.Get("X-Jenkins")
ifj.Raw==nil||rsp.StatusCode!=http.StatusOK {
returnnil, errors.New(fmt.Sprintf("Connection Failed, please verify that the host and credentials are correct. Status Code %d", rsp.StatusCode))
}
I'm having difficulty connecting to an enterprise Jenkins instance, and can't troubleshoot whether my credentials are invalid or unauthorized, since
Jenkins.Init()
doesn't tell me the status code, just that it failed.Suggested change:
Previously suggested by @vperson in #210 (comment)
The text was updated successfully, but these errors were encountered: