Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26241

Nested View Plugin creates wrong links using the build server's domain name

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • nested-view-plugin
    • None
    • Jenkins ver. 1.580.2 (LTS)
      Nested View Plugin 1.14

      I have a nested view with two portlets: A job list and a unit test statistics grid.
      On one of the two, I get absolute links based on what's configured in "Manage Jenkins... Configure System... Jenkins URL" instead of just relative links starting with "/"

      Here's an example: My build server's DNS name is "build.foo.com", but I'm also configuring a new build server "newbuild.foo.com". I've configured on both that the Jenkins URL is "http://build.foo.com".

      Working on "newbuild.foo.com" shows the problem:
      Jenkins normally doesn't care about that configuration when creating links to jobs: For my "base" job for instance, I get <a class="model-link inside" href="job/base/">base</a>

      But in the Nested View Plugin, I sometimes get the URL above, but also <a class="model-link" href="http://build.foo.com/view/bar/view/Projects/job/base/">base</a> - which means that the configuration is used to build that link.

            Unassigned Unassigned
            cristalp cristalp
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: