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

MultiJob project main page produces a wrong link to a phase item if opened from a View

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • multijob-plugin
    • None

      Reproduction steps:
      1. Create a multi-job project in the Jenkins root
      2. Create a folder in the Jenkins root (e.g. "folder")
      3. Create a job in the folder (e.g. "foo")
      4. Set it as one of the phases of the multi-job build and save
      5. Create a view (e.g. "MyView") in the root, include the multi-job project there
      6. Go to the view, open the multijob project there
      7. If you click on the reference to the job in the folder, the URL points to a non-existent page

      Example of the broken link: http://localhost:8080/jenkins/view/MyView/job/foo/

      • Folder link is lost, because shortUrl does not retain it
      • If we try this case without a View, everything works well => probably there is a bug in Jenkins core

      I propose too replace the implementation to Job's absolute url in order to always produce a valid link. The current approach won't work in general, because Views may not contain the multijob's items

          [JENKINS-30262] MultiJob project main page produces a wrong link to a phase item if opened from a View

          Oleg Nenashev created issue -
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Oleg Nenashev made changes -
          Remote Link New: This issue links to "tikal-multijob-plugin/pull/72 (Web Link)" [ 13138 ]
          Oleg Nenashev made changes -
          Link New: This issue is duplicated by JENKINS-30230 [ JENKINS-30230 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 165355 ] New: JNJira + In-Review [ 197696 ]

            oleg_nenashev Oleg Nenashev
            oleg_nenashev Oleg Nenashev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: