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

SCM env vars for multiple scm's plugin not useful with multiple git repos

    Details

    • Similar Issues:

      Description

      If you have multiple git repos specified in project, the environment variables for revision/etc are only populated from the last one, so there is no good way to get the details of the revisions except by having build steps extract it themselves with git commands.

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Jake Stoeffler
          Path:
          src/main/java/org/jenkinsci/plugins/multiplescms/MultiSCM.java
          http://jenkins-ci.org/commit/multiple-scms-plugin/2490dd7e48cf485f91797a14a5e2a700848ae76a
          Log:
          Prevent collisions in env vars when using multiple SCMs of the same kind

          [FIXED JENKINS-30709]

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jake Stoeffler Path: src/main/java/org/jenkinsci/plugins/multiplescms/MultiSCM.java http://jenkins-ci.org/commit/multiple-scms-plugin/2490dd7e48cf485f91797a14a5e2a700848ae76a Log: Prevent collisions in env vars when using multiple SCMs of the same kind [FIXED JENKINS-30709]
          Hide
          sauraus Antek Baranski added a comment -

          You do know that you broke all backwards compatibility with this change... was this even tested before being released into the wild?

          Show
          sauraus Antek Baranski added a comment - You do know that you broke all backwards compatibility with this change... was this even tested before being released into the wild?
          Hide
          daks Eric Veiras added a comment -

          Hello,
          is there any documentation about this functionnality? How can I retrieve this env vars from each SCM used?

          Show
          daks Eric Veiras added a comment - Hello, is there any documentation about this functionnality? How can I retrieve this env vars from each SCM used?
          Hide
          amaroo Ankit Maroo added a comment -

          Hi, we could access GIT_URL_N and GIT_COMMIT_N, etc variables before. seem like recent changes have broken it. Those variables arent available anymore.

          Show
          amaroo Ankit Maroo added a comment - Hi, we could access GIT_URL_N and GIT_COMMIT_N, etc variables before. seem like recent changes have broken it. Those variables arent available anymore.

            People

            • Assignee:
              kbell Kevin Bell
              Reporter:
              nneul Nathan Neulinger
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: