• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None
    • Windows 64 bit

      I setup a test where I have one git repo with two jobs pointing to two different folders. They pull each 1 minute, and their job do nothing, and succeed.

      I end-up to get the same change trigger two builds for the same job.

      Extract:
      Job #5:
      Started on Jan 17, 2012 5:45:49 AM
      Using strategy: Default
      [poll] Last Build : #3
      [poll] Last Built Revision: Revision 88d40a9c206fe9d9d419a7c41a5c1eb25643fd3e (origin/solrIntegration)
      Fetching changes from the remote Git repositories
      Fetching upstream changes from http://oxgslcrsa01.oaifield.onasgn.com:8082/git/ops
      Polling for changes in
      Done. Took 0.6 sec
      Changes found

      Job #4:
      Started on Jan 17, 2012 5:44:49 AM
      Using strategy: Default
      [poll] Last Build : #3
      [poll] Last Built Revision: Revision 88d40a9c206fe9d9d419a7c41a5c1eb25643fd3e (origin/solrIntegration)
      Fetching changes from the remote Git repositories
      Fetching upstream changes from http://oxgslcrsa01.oaifield.onasgn.com:8082/git/ops
      Polling for changes in
      Done. Took 0.57 sec
      Changes found

      Expectations is that no build will ever be duplicated due to the same changeset. Also by default, a the SCM trigger should not trigger a new build if the same build have already been trigger manually.

          [JENKINS-12430] Git change trigger generate duplicate build

          Paul Eipper added a comment -

          I have the same issue on Mac OSX Lion master (no slaves). Below is an example output.
          Note the difference of the Last Built Revision on console and on polling log of build #57, I don't know what would cause that.

          Build #56

          Console #56:
          Started by an SCM change
          Started by an SCM change
          Started by an SCM change
          Started by an SCM change
          Building in workspace /Volumes/Overmind HD/Jenkins/Home/jobs/Example Project-Develop/workspace
          Checkout:workspace / /Volumes/Overmind HD/Jenkins/Home/jobs/Example Project-Develop/workspace - hudson.remoting.LocalChannel@53daed73
          Using strategy: Default
          Last Built Revision: Revision e12107b73706720dd27ef14cd8702006464dc8e9 (origin/develop)
          Wiping out workspace first.
          Cloning the remote Git repository
          Cloning repository origin
          Fetching upstream changes from git@example.com:example.git
          Commencing build of Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop)
          Checking out Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop)
          Working directory is /Volumes/Overmind HD/Jenkins/Home/jobs/Example Project-Develop/workspace.
          [workspace] $ /usr/bin/xcodebuild -version
          Xcode 4.3.2
          Build version 4E2002
          
          Polling Log #56:
          Started on Jun 14, 2012 2:28:53 PM
          Using strategy: Default
          [poll] Last Build : #55
          [poll] Last Built Revision: Revision e12107b73706720dd27ef14cd8702006464dc8e9 (origin/develop)
          Done. Took 6.5 sec
          Changes found
          
          Git Build Data #56:
          Revision: 9de64a426e482ce08b3d869899a77de981316336
              origin/develop
          Built Branches
              origin/develop: Build #56 of Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop)
          

          Build #57

          Console #57:
          Started by an SCM change
          Building in workspace /Volumes/Overmind HD/Jenkins/Home/jobs/Example Project-Develop/workspace
          Checkout:workspace / /Volumes/Overmind HD/Jenkins/Home/jobs/Example Project-Develop/workspace - hudson.remoting.LocalChannel@53daed73
          Using strategy: Default
          Last Built Revision: Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop)
          Wiping out workspace first.
          Cloning the remote Git repository
          Cloning repository origin
          Fetching upstream changes from git@example.com:example.git
          Commencing build of Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop)
          Checking out Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop)
          Working directory is /Volumes/Overmind HD/Jenkins/Home/jobs/Example Project-Develop/workspace.
          [workspace] $ /usr/bin/xcodebuild -version
          Xcode 4.3.2
          Build version 4E2002
          
          Polling Log #57:
          Started on Jun 14, 2012 2:34:53 PM
          Using strategy: Default
          [poll] Last Build : #56
          [poll] Last Built Revision: Revision e12107b73706720dd27ef14cd8702006464dc8e9 (origin/develop)
          Done. Took 4.4 sec
          Changes found
          
          Git Build Data #57:
          Revision: 9de64a426e482ce08b3d869899a77de981316336
              origin/develop
          Built Branches
              origin/develop: Build #57 of Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop)
          

          Paul Eipper added a comment - I have the same issue on Mac OSX Lion master (no slaves). Below is an example output. Note the difference of the Last Built Revision on console and on polling log of build #57, I don't know what would cause that. Build #56 Console #56: Started by an SCM change Started by an SCM change Started by an SCM change Started by an SCM change Building in workspace /Volumes/Overmind HD/Jenkins/Home/jobs/Example Project-Develop/workspace Checkout:workspace / /Volumes/Overmind HD/Jenkins/Home/jobs/Example Project-Develop/workspace - hudson.remoting.LocalChannel@53daed73 Using strategy: Default Last Built Revision: Revision e12107b73706720dd27ef14cd8702006464dc8e9 (origin/develop) Wiping out workspace first. Cloning the remote Git repository Cloning repository origin Fetching upstream changes from git@example.com:example.git Commencing build of Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop) Checking out Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop) Working directory is /Volumes/Overmind HD/Jenkins/Home/jobs/Example Project-Develop/workspace. [workspace] $ /usr/bin/xcodebuild -version Xcode 4.3.2 Build version 4E2002 Polling Log #56: Started on Jun 14, 2012 2:28:53 PM Using strategy: Default [poll] Last Build : #55 [poll] Last Built Revision: Revision e12107b73706720dd27ef14cd8702006464dc8e9 (origin/develop) Done. Took 6.5 sec Changes found Git Build Data #56: Revision: 9de64a426e482ce08b3d869899a77de981316336 origin/develop Built Branches origin/develop: Build #56 of Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop) Build #57 Console #57: Started by an SCM change Building in workspace /Volumes/Overmind HD/Jenkins/Home/jobs/Example Project-Develop/workspace Checkout:workspace / /Volumes/Overmind HD/Jenkins/Home/jobs/Example Project-Develop/workspace - hudson.remoting.LocalChannel@53daed73 Using strategy: Default Last Built Revision: Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop) Wiping out workspace first. Cloning the remote Git repository Cloning repository origin Fetching upstream changes from git@example.com:example.git Commencing build of Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop) Checking out Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop) Working directory is /Volumes/Overmind HD/Jenkins/Home/jobs/Example Project-Develop/workspace. [workspace] $ /usr/bin/xcodebuild -version Xcode 4.3.2 Build version 4E2002 Polling Log #57: Started on Jun 14, 2012 2:34:53 PM Using strategy: Default [poll] Last Build : #56 [poll] Last Built Revision: Revision e12107b73706720dd27ef14cd8702006464dc8e9 (origin/develop) Done. Took 4.4 sec Changes found Git Build Data #57: Revision: 9de64a426e482ce08b3d869899a77de981316336 origin/develop Built Branches origin/develop: Build #57 of Revision 9de64a426e482ce08b3d869899a77de981316336 (origin/develop)

          Zsolt Takacs added a comment -

          Same issue on debian squeeze using LTS.

          Zsolt Takacs added a comment - Same issue on debian squeeze using LTS.

          Sorin Sbarnea added a comment -

          We started encountering the same bug with current version of jenkins. It was not always like that but something triggered this weird an annoying behaviour. If it matters, we poll every 2 minutes and we have a silent period of 100 seconds.

          Sorin Sbarnea added a comment - We started encountering the same bug with current version of jenkins. It was not always like that but something triggered this weird an annoying behaviour. If it matters, we poll every 2 minutes and we have a silent period of 100 seconds.

          Mark Waite added a comment -

          ssbarnea have you tried changing from git plugin 2.3.5 to git plugin 2.3.4? The 2.3.5 plugin is believed to have a problem with incorrectly detecting changes from polling.

          Mark Waite added a comment - ssbarnea have you tried changing from git plugin 2.3.5 to git plugin 2.3.4? The 2.3.5 plugin is believed to have a problem with incorrectly detecting changes from polling.

            Unassigned Unassigned
            sebtardif Sebastien Tardif
            Votes:
            5 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: