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

Extend GitChangeSet to get the repository name

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • git-plugin

      By using a global shared library for Pipeline jobs, rawBuild.changeSets on the current build will contain the changes of the global shared library and the repository that is used for building. To better distinguish between theses to sources, it would be great to have a variable to obtain the repository.

      The GitChangeSet class does not provide any possibility to get repository information about the commit.

          currentBuild.rawBuild.changeSets.collect { cs ->
              cs.collect { entry ->
                  "* ${entry.author.fullName}: ${entry.msg}"
              }.join("\n")
          }.join("\n")
      

          [JENKINS-40129] Extend GitChangeSet to get the repository name

          Arne Tempelhof created issue -
          Phil McArdle made changes -
          Link New: This issue relates to JENKINS-39499 [ JENKINS-39499 ]
          Jesse Glick made changes -
          Component/s New: workflow-job-plugin [ 21716 ]
          Component/s Original: workflow-cps-global-lib-plugin [ 21714 ]
          Labels Original: changelog pipeline New: changelog
          Achraf Ghabi made changes -
          Link New: This issue is related to JENKINS-47689 [ JENKINS-47689 ]
          Andrew Bayer made changes -
          Component/s New: git-plugin [ 15543 ]
          Component/s Original: workflow-job-plugin [ 21716 ]

            Unassigned Unassigned
            webventil Arne Tempelhof
            Votes:
            12 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated: