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

Wrong links created on summary on a multijob execution

      Page summary about jobs executed by a multijob project create wrongly links to jobs.

      For example if multijob URL is https://server/jenkins/job/CUDB-IST-Main/447/ and launch one job on https://server/jenkins/job/CUDB-IST-Generation/459/. Link build #459 located on https://server/jenkins/job/CUDB-IST-Main/447/ (see attached file) points to https://server/job/CUDB-IST-Main/447/ (without jenkins on URL included).

          [JENKINS-14955] Wrong links created on summary on a multijob execution

          I can confirm this behaviour: it only occurs if jenkins is started with --prefix=<something>.
          The links in the console output are correct.

          (same as https://issues.jenkins-ci.org/browse/JENKINS-14952)

          Björn Pedersen added a comment - I can confirm this behaviour: it only occurs if jenkins is started with --prefix=<something>. The links in the console output are correct. (same as https://issues.jenkins-ci.org/browse/JENKINS-14952 )

          Doron Shai added a comment -

          Doron Shai added a comment - Duplicae also with https://issues.jenkins-ci.org/browse/JENKINS-15965

          Doron Shai added a comment -

          Any chance this will be solved? I believe this is a small fix for a really annoying bug.

          Doron Shai added a comment - Any chance this will be solved? I believe this is a small fix for a really annoying bug.

          hagzag added a comment -

          Please recreate and report back

          hagzag added a comment - Please recreate and report back

          I fixed the problem locally by using $rootURL at some places in the jelly.

          Björn Pedersen added a comment - I fixed the problem locally by using $rootURL at some places in the jelly.

          Code changed in jenkins
          User: Yoram Michaeli
          Path:
          src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java
          http://jenkins-ci.org/commit/tikal-multijob-plugin/c8c4eb7b24f59662489341bf1c04e280e2a03c21
          Log:
          Fix for issue JENKINS-14955 (which also duplicate with issue
          JENKINS-15965)


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Yoram Michaeli Path: src/main/java/com/tikal/jenkins/plugins/multijob/MultiJobBuilder.java http://jenkins-ci.org/commit/tikal-multijob-plugin/c8c4eb7b24f59662489341bf1c04e280e2a03c21 Log: Fix for issue JENKINS-14955 (which also duplicate with issue JENKINS-15965 ) – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .

          The bug still exist in 1.9, one change is still necessary:
          index d347b07..b2f453f 100644
          — a/src/main/resources/com/tikal/jenkins/plugins/multijob/MultiJobBuild/main.jelly
          +++ b/src/main/resources/com/tikal/jenkins/plugins/multijob/MultiJobBuild/main.jelly
          @@ -17,7 +17,7 @@
          <td class="no-wrap">
          <j:choose>
          <j:when test="${builder.url.length() > 0}">

          • <a href="/${builder.url}">
            + <a href="${rootURL}/${builder.url}">
            build #${builder.buildNumber}
            </a>
            </j:when>

          Björn Pedersen added a comment - The bug still exist in 1.9, one change is still necessary: index d347b07..b2f453f 100644 — a/src/main/resources/com/tikal/jenkins/plugins/multijob/MultiJobBuild/main.jelly +++ b/src/main/resources/com/tikal/jenkins/plugins/multijob/MultiJobBuild/main.jelly @@ -17,7 +17,7 @@ <td class="no-wrap"> <j:choose> <j:when test="${builder.url.length() > 0}"> <a href="/${builder.url}"> + <a href="${rootURL}/${builder.url}"> build #${builder.buildNumber} </a> </j:when>

          Code changed in jenkins
          User: daldinger
          Path:
          src/main/resources/com/tikal/jenkins/plugins/multijob/MultiJobBuild/main.jelly
          http://jenkins-ci.org/commit/tikal-multijob-plugin/8a527f2d9258bd79ee10c6875e3ee5a04319e8cd
          Log:
          Fixes issue JENKINS-14955

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: daldinger Path: src/main/resources/com/tikal/jenkins/plugins/multijob/MultiJobBuild/main.jelly http://jenkins-ci.org/commit/tikal-multijob-plugin/8a527f2d9258bd79ee10c6875e3ee5a04319e8cd Log: Fixes issue JENKINS-14955

          Code changed in jenkins
          User: Haggai Philip Zagury
          Path:
          src/main/resources/com/tikal/jenkins/plugins/multijob/MultiJobBuild/main.jelly
          http://jenkins-ci.org/commit/tikal-multijob-plugin/2abd15081be150fbb0b9952fcce70493da65a9de
          Log:
          Merge pull request #23 from daldinger/master

          Change for JENKINS-14955

          Compare: https://github.com/jenkinsci/tikal-multijob-plugin/compare/2a297ff266bd...2abd15081be1

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Haggai Philip Zagury Path: src/main/resources/com/tikal/jenkins/plugins/multijob/MultiJobBuild/main.jelly http://jenkins-ci.org/commit/tikal-multijob-plugin/2abd15081be150fbb0b9952fcce70493da65a9de Log: Merge pull request #23 from daldinger/master Change for JENKINS-14955 Compare: https://github.com/jenkinsci/tikal-multijob-plugin/compare/2a297ff266bd...2abd15081be1

            yorammi Yoram Michaeli
            ctsanjuansanz Carlos Tomás San Juan Sanz
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: