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

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

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • core
    • None

      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.

          [JENKINS-25113] Column extensions: job.url in column.jelly is wrong in non-default views

          centic created issue -
          centic made changes -
          Link New: This issue is blocking JENKINS-23583 [ JENKINS-23583 ]
          centic made changes -
          Link New: This issue is blocking JENKINS-23623 [ JENKINS-23623 ]
          centic made changes -
          Link New: This issue is related to JENKINS-19310 [ JENKINS-19310 ]
          Daniel Beck made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-26410 [ JENKINS-26410 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 159017 ] New: JNJira + In-Review [ 195967 ]

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

              Created:
              Updated:
              Resolved: