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 found this project just yesterday and got very curios to give it a try 馃槃
So while playing around today I got to the point where I had some reports to add to a Bitbucket Server instance from a Jenkins job.
After cloning the project locally and enabling debugging of the Bitbucket API client I found that requests were using the wrong URL.
The calls were made to https://bitbucket.my-company.com/rest/... instead of the expected URL https://bitbucket.my-company.com/bitbucket/rest/....
The reason seems to be that the path portion is dropped within this function:
returnctx, fmt.Errorf("failed to parse Bitbucket Server URL: %w", err)
}
returncontext.WithValue(
ctx,
insights.ContextServerVariables,
map[string]string{
"protocol": parsed.Scheme,
"bitbucketDomain": parsed.Host,
},
), nil
}
Unfortunately the error message does not indicate which server or at least service is used in regards to URL or Bitbucket Cloud vs. Bitbucket Server.
I suspected first that I was talking to Bitbucket Cloud by accident due to a wrong configuration.
reviewdog version: v0.14.0
The text was updated successfully, but these errors were encountered:
Hi,
I found this project just yesterday and got very curios to give it a try 馃槃
So while playing around today I got to the point where I had some reports to add to a Bitbucket Server instance from a Jenkins job.
But unfortunately I ran into the following issue:
After cloning the project locally and enabling debugging of the Bitbucket API client I found that requests were using the wrong URL.
The calls were made to
https://bitbucket.my-company.com/rest/...
instead of the expected URLhttps://bitbucket.my-company.com/bitbucket/rest/...
.The reason seems to be that the path portion is dropped within this function:
reviewdog/service/bitbucket/server_api_context.go
Lines 43 to 58 in 49afd38
Unfortunately the error message does not indicate which server or at least service is used in regards to URL or Bitbucket Cloud vs. Bitbucket Server.
I suspected first that I was talking to Bitbucket Cloud by accident due to a wrong configuration.
reviewdog version: v0.14.0
The text was updated successfully, but these errors were encountered: