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

Display Organization/Project and Repository name(s) on the job details page

      Currently when checking out multiple repositories or a single repository with submodules the Git plugin only displays the commit sha(s) and branch name(s) for each of the repositories being checked out on the job details page and as part of the Git Build Data.

      It would be useful to have the Organization/Project and Repository name(s) displayed alongside the commit sha(s) and branch name(s). This makes it easier to associate the changes to the repository.

          [JENKINS-54868] Display Organization/Project and Repository name(s) on the job details page

          Tarun Gidwani created issue -
          Tarun Gidwani made changes -
          Link New: This issue is related to JENKINS-47689 [ JENKINS-47689 ]
          Tarun Gidwani made changes -
          Link New: This issue is related to JENKINS-29840 [ JENKINS-29840 ]
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Labels Original: configuration git jenkins pipeline plugin plugins New: configuration git newbie-friendly pipeline
          Fábio Silva made changes -
          Assignee New: Fábio Silva [ zedasvacas ]
          Kezhi Xiong made changes -
          Attachment New: Jenkins.png [ 50157 ]

          Kezhi Xiong added a comment -

          I have successfully tried to add the organization/project name and made it looks like this.  

          But as you can see above, I still haven't found the right way to get the repository name. As far as I know, there is not a specific defined 'name' for a git repository. For a local repository, the name should be the root folder name; or if it is a GitHub repo, the only way to get the repository is to parse the repository address. Any further suggestions? Thanks very much! 

          Kezhi Xiong added a comment - I have successfully tried to add the organization/project name and made it looks like this.   But as you can see above, I still haven't found the right way to get the repository name. As far as I know, there is not a specific defined 'name' for a git repository. For a local repository, the name should be the root folder name; or if it is a GitHub repo, the only way to get the repository is to parse the repository address. Any further suggestions? Thanks very much! 

          Didier Crest added a comment -

          Nice xiongkezhi, your trying seems great.

          Instead the repository name which seems difficult to get.

          Why do not write the URL of git remote?

          Didier Crest added a comment - Nice xiongkezhi , your trying seems great. Instead the repository name which seems difficult to get. Why do not write the URL of git remote?
          Fábio Silva made changes -
          Assignee Original: Fábio Silva [ zedasvacas ] New: Mark Waite [ markewaite ]

            Unassigned Unassigned
            tarungidwani Tarun Gidwani
            Votes:
            9 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated: