Details
-
Type:
Bug
-
Status: Open (View Workflow)
-
Priority:
Critical
-
Resolution: Unresolved
-
Component/s: core
-
Labels:
-
Environment:Jenkins 2.117
-
Similar Issues:
Description
The url that is automatically added to the github status created by a multi-branch build (eg `URL/job/JOBNAME/job/BRANCHNAME/BUILDNUMBER/display/redirect`) redirects to a 404 URL that contains an extra forward slash.
Example:
`BASEURL//blue/organizations/jenkins/JOBNAME/detail/BRANCHNAME/BUILDNUMBER/`
should be
`BASEURL/blue/organizations/jenkins/JOBNAME/detail/BRANCHNAME/BUILDNUMBER/`
If I remove one of the slashes, it works.
I am on 2.190.2 and had the same issue.
We are also behind an Apache reverse proxy, and we had mismatching slashes in the proxypass directive:
We had
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / https://MYURL
instead of
ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / https://MYURL/
A sidenote:
It is not possible to remove the slash from the URL in Jenkins. I can change the URL manually in jenkins.model.JenkinsLocationConfiguration.xml, but whenever I try to remove the slash from the "Jenkins URL" field in the web configurator, it reappears.