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

Wrong commit link to GitLab

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • git-plugin
    • None
    • Jenkins LTS 2.190.1 (self-hosted), git plugin 3.12.1, GitLab 12

      Let we have a job that points to GitLab repository. Any Jenkins changes view with a list of commits provides a wrong link to GitLab commit (changeset).

       

      Example page: https://JENKINS_URL/job/JOB_NAME/job/master/1/changes

      Expected link: https://gitlab.com/OWNER/REPO/commit/HASH

      Actual link: https://gitlab.com/commit/HASH

       

      I suppose the `GitLab::getChangeSetLink` is broken since maybe gitlab 7. It should include repository information in the URL.

        1. 01-gitlab-browser-definition.png
          39 kB
          Mark Waite
        2. 02-gitlab-recent-changes-link.png
          46 kB
          Mark Waite
        3. 03-gitlab-destination-page.png
          71 kB
          Mark Waite
        4. 04-gitlab-build-3-build-page.png
          87 kB
          Mark Waite
        5. 05-1-gitlab-build-3-changes-page-README-destination.png
          89 kB
          Mark Waite
        6. 05-2-gitlab-build-3-changes-page-diff-destination.png
          102 kB
          Mark Waite
        7. 05-gitlab-build-3-changes-page.png
          67 kB
          Mark Waite

            theirix Evgeny Seliverstov
            theirix Evgeny Seliverstov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: