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

Column extensions: job.url in column.jelly is wrong in non-default views

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: core
    • Labels:
      None
    • Similar Issues:

      Description

      See https://issues.jenkins-ci.org/browse/JENKINS-23623, if you use ${job.url} in a column extension, it is working in the default view, but breaks in a non-default view.

      In the default view, the link is:
      http://localhost/job/test-job/lastSuccessfulBuild/jacoco/

      However in a different view, it is rendered as:
      http://localhost/view/Coverage/view/Coverage/job/test-job/lastSuccessfulBuild/jacoco/

      i.e. duplicating the "view/Coverage/" part.

      There are multiple extensions which currently break because of this, at least the jacococolumn in jacoco-plugin and a number of columns in the extra-columns-plugin, see https://github.com/jenkinsci/extra-columns-plugin/search?utf8=%E2%9C%93&q=job.url

      Workaround seems to be to use ${jobBaseUrl}${job.shortUrl} instead of ${job.url} as this leads to working URLs always.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                centic centic
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: