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

Changes are not captured for second repo, job is configured with multiple-scm

XMLWordPrintable

      I set two git repo using multiple-scm and specified sub-directories for the repo. Its working fine however tracking changes only for first repo. If changes are in second repo, it says change found however nothing comes in change log.

      Polling log:
      =========
      Started on Jul 7, 2015 1:13:59 AM
      Polling SCM changes on master
      Using strategy: Default
      [poll] Last Built Revision: Revision 392dad9823e31d6a5450873f07627f41f1ec6d7d (refs/remotes/origin/master)
      using GIT_SSH to set credentials
      > git --version # timeout=10
      > git -c core.askpass=true ls-remote -h git.abc.com:/git/test-mac.git # timeout=10
      [poll] Latest remote head revision on origin/master is: 392dad9823e31d6a5450873f07627f41f1ec6d7d - already built by 158
      Using strategy: Default
      [poll] Last Built Revision: Revision 392dad9823e31d6a5450873f07627f41f1ec6d7d (refs/remotes/origin/master)
      using GIT_SSH to set credentials
      > git --version # timeout=10
      > git -c core.askpass=true ls-remote -h git.abc.com:/git/test-core.git # timeout=10
      [poll] Latest remote head revision on origin1/master is: 91e123687f0da9a2a2afb0c97ac93d218e74f7fb
      Done. Took 4.3 sec
      Changes found

      Log:
      ====
      Building in workspace /Users/abc/workspace
      > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url git.abc.com:/git/test-mac.git # timeout=10
      Fetching upstream changes from git.abc.com:/git/test-mac.git
      > git --version # timeout=10
      using GIT_SSH to set credentials
      > git -c core.askpass=true fetch --tags --progress git.abc.com:/git/test-mac.git +refs/heads/:refs/remotes/origin/
      > git rev-parse refs/remotes/origin/master^

      {commit} # timeout=10
      > git rev-parse refs/remotes/origin/origin/master^{commit}

      # timeout=10
      Checking out Revision 392dad9823e31d6a5450873f07627f41f1ec6d7d (refs/remotes/origin/master)
      > git config core.sparsecheckout # timeout=10
      > git checkout -f 392dad9823e31d6a5450873f07627f41f1ec6d7d
      First time build. Skipping changelog.
      > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin1.url git.abc.com:/git/test-core.git # timeout=10
      Fetching upstream changes from git.abc.com:/git/test-core.git
      > git --version # timeout=10
      using GIT_SSH to set credentials
      > git -c core.askpass=true fetch --tags --progress git.abc.com:/git/test-core.git +refs/heads/:refs/remotes/origin1/
      > git rev-parse refs/remotes/origin1/master^

      {commit} # timeout=10
      > git rev-parse refs/remotes/origin1/origin1/master^{commit}

      # timeout=10
      Checking out Revision 91e123687f0da9a2a2afb0c97ac93d218e74f7fb (refs/remotes/origin1/master)
      > git config core.sparsecheckout # timeout=10
      > git checkout -f 91e123687f0da9a2a2afb0c97ac93d218e74f7fb
      First time build. Skipping changelog.
      No emails were triggered.

      Also tried with Multiple repo with git:
      ===========================
      http://stackoverflow.com/questions/31003701/how-to-get-change-logs-from-two-repositories-configured-in-jenkins#

            kbell Kevin Bell
            anni_saini Anil Saini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: