Skip to content
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

Fixed link to the build for instances installed not as ROOT app #28

Merged
merged 1 commit into from
Oct 14, 2014

Conversation

ifel
Copy link

@ifel ifel commented Sep 20, 2014

If Jenkins installed as additional application and not as ROOT application (i.e. http://host:port/jenkins/ and not http://host:port/), the link on a job's build page that points to the build which this particular build rebuilds is incorrect, it points to server's ROOT application instead of additional one. So it works great if Jenkins is installed in root, but isn't if it is an additional application.

ik3test2__11__jenkins_

return Messages.Cause_RebuildCause_ShortDescriptionHTML(getUpstreamBuild(), '/'
+ getUpstreamUrl() + getUpstreamBuild());
return Messages.Cause_RebuildCause_ShortDescriptionHTML(getUpstreamBuild(),
Jenkins.getInstance().getRootUrlFromRequest() + getUpstreamUrl() + getUpstreamBuild());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could cause issues with reverse proxy.

rsandell added a commit that referenced this pull request Oct 14, 2014
Fixed link to the build for instances installed not as ROOT app
@rsandell rsandell merged commit 6465b86 into jenkinsci:master Oct 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants