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

poll scm always run even there is no changes with multiple scm plugin configured two branches in the same repo

    Details

    • Similar Issues:

      Description

      i use multiple scm plugin to configure two git scms with the same git project , but two different branches. and i use the poll scm plugin as trigger . the poll always thinks there is new change even if there is no new changes.

      the poll log:

      Git Polling Log :

      Started on Sep 28, 2015 1:32:00 AM
      Polling SCM changes on master
      Using strategy: Default
      [poll] Last Built Revision: Revision c3b9bbfc4dfc3884fdd3e523e527c03ad97a5e04 (refs/remotes/origin/master)
      using GIT_SSH to set credentials ui gitlab deploy key
      > git --version # timeout=10
      > git -c core.askpass=true ls-remote -h git@git.dev.fwmrm.net:af/engine.git # timeout=10
      [poll] Latest remote head revision on origin/master is: c3b9bbfc4dfc3884fdd3e523e527c03ad97a5e04 - already built by 21
      Using strategy: Default
      [poll] Last Built Revision: Revision c3b9bbfc4dfc3884fdd3e523e527c03ad97a5e04 (refs/remotes/origin/master)
      using GIT_SSH to set credentials ui gitlab deploy key
      > git --version # timeout=10
      > git -c core.askpass=true ls-remote -h git@git.dev.fwmrm.net:af/engine.git # timeout=10
      [poll] Latest remote head revision on origin/6.3 is: 1993a6ce1f7192ba0b48b81c0948b1039a169f70
      Done. Took 1 sec
      Changes found

        Attachments

          Activity

          Hide
          greenscar James Sandlin added a comment - - edited

          The workaround: For your Branch Specifier, you must have an absolute path.
          EX:
          Branch Specifier (blank for 'any') refs/heads/feature/promotionscript

          If you do not include refs/heads/ as the prefix, the build will run continuously.
          Also note: I have only tested this via GIT

          Show
          greenscar James Sandlin added a comment - - edited The workaround: For your Branch Specifier, you must have an absolute path. EX: Branch Specifier (blank for 'any') refs/heads/feature/promotionscript If you do not include refs/heads/ as the prefix, the build will run continuously. Also note: I have only tested this via GIT
          Hide
          rodrigc Craig Rodrigues added a comment -

          Suggest that you migrate to Pipeline plugin, which offers a supported way of checking out from multiple scms
          https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin

          Show
          rodrigc Craig Rodrigues added a comment - Suggest that you migrate to Pipeline plugin, which offers a supported way of checking out from multiple scms https://wiki.jenkins-ci.org/display/JENKINS/Pipeline+Plugin

            People

            • Assignee:
              kbell Kevin Bell
              Reporter:
              hqli huaqiang li
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: