Status: Closed (View Workflow)
User has to know to add /api/v3 to the end of their server URL
Steps to reproduce
- Go to Creation
- Click Github Enterprise
- Cick Add server
- Provide a name for the server
- Provide the URL to Github Enterprise
What you see
Blue Ocean cannot connect to Github Enterprise
What should happen
Blue Ocean should automatically append /api/v3 to the server URL if not already specified.
- is duplicated by
JENKINS-48693 github.ibm.com Invalid server. Check hostname.
- links to
kshultz From what I can see in the ATH live tests we do not have an actual GHE server to connect to, we mock it, so this would not actually catch an URL change in actual GHE servers. I left the current behaviour of trying to connect to the URL provided by the user and in case that fails, re-try with the URL appended by "/api/v3", this should cover all cases until a URL changes in GHE, in which point adding GHE servers will still work as long as the user knows the correct URL
Problem reproduced with kshultz on Blue Ocean 1.4.2 / Jenkins Core 2.89.4
I had to suffix my github enterprise url by /api/v3 to workaround.
cleclerc kshultz The fix was not cherry picked from master to the 1.4 release branch and that is why the bug is still present in 1.4.2. I cherry picked it via a PR today and it will be present in the next release.