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

Pollscm trigger runs the job twice for the same commit

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: core, pipeline
    • Labels:
      None
    • Environment:
      Jenkins 2.7.4
    • Similar Issues:

      Description

      We've got the job with pollscm trigger enabled for two repositories.
      The job is triggered twice with one minute interval, though both commit hashes are the same.

      Pollscm logs look like this:

      Started on Sep 22, 2016 9:47:00 AM
      Using strategy: Default
      [poll] Last Built Revision: Revision <revA> (go/master)
      ...
      [poll] Latest remote head revision on refs/heads/master is: <revA> - already built by 1
      Using strategy: Default
      ...
      [poll] Latest remote head revision on refs/heads/master is: <revB>
      Done. Took 1 sec
      Changes found
      
      Started on Sep 22, 2016 9:48:00 AM
      Using strategy: Default
      [poll] Last Built Revision: Revision <revA> (go/master)
      ...
      [poll] Latest remote head revision on refs/heads/master is: <revA> - already built by 2
      Using strategy: Default
      ...
      [poll] Latest remote head revision on refs/heads/master is: <revB>
      Done. Took 0.65 sec
      Changes found
      

      <revA, revB> pair is the same in two job runs.

        Attachments

          Issue Links

            Activity

            ifn Shat Shabaev created issue -
            ifn Shat Shabaev made changes -
            Field Original Value New Value
            Description We've got the job with pollscm trigger enabled for two repositories.
            The job is triggered twice with one minute interval, though both commit hashes are the same.

            Pollscm logs:
            {code}
            Started on Sep 22, 2016 9:47:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision d6c60d0141c778107af732cf0dd051223c00be73 (go/master)
            using GIT_SSH to set credentials
             > git ls-remote -h git@gitlab.corp.mail.ru:rb/go.git # timeout=10
            Found 74 remote heads on git@gitlab.corp.mail.ru:rb/go.git
            [poll] Latest remote head revision on refs/heads/master is: d6c60d0141c778107af732cf0dd051223c00be73 - already built by 1
            Using strategy: Default
            using GIT_SSH to set credentials
             > git ls-remote -h git@gitlab.corp.mail.ru:rb/rb-autochecks.git # timeout=10
            Found 14 remote heads on git@gitlab.corp.mail.ru:rb/rb-autochecks.git
            [poll] Latest remote head revision on refs/heads/master is: 8b766797b64bcb34953f3aa70ca0161c3434bdc2
            Done. Took 1 sec
            Changes found
            {code}


            {code}
            Started on Sep 22, 2016 9:48:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision d6c60d0141c778107af732cf0dd051223c00be73 (go/master)
            using GIT_SSH to set credentials
             > git ls-remote -h git@gitlab.corp.mail.ru:rb/go.git # timeout=10
            Found 74 remote heads on git@gitlab.corp.mail.ru:rb/go.git
            [poll] Latest remote head revision on refs/heads/master is: d6c60d0141c778107af732cf0dd051223c00be73 - already built by 2
            Using strategy: Default
            using GIT_SSH to set credentials
             > git ls-remote -h git@gitlab.corp.mail.ru:rb/rb-autochecks.git # timeout=10
            Found 14 remote heads on git@gitlab.corp.mail.ru:rb/rb-autochecks.git
            [poll] Latest remote head revision on refs/heads/master is: 8b766797b64bcb34953f3aa70ca0161c3434bdc2
            Done. Took 0.65 sec
            Changes found
            {code}
            We've got the job with pollscm trigger enabled for two repositories.
            The job is triggered twice with one minute interval, though both commit hashes are the same.

            Pollscm logs:
            {code}
            Started on Sep 22, 2016 9:47:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision d6c60d0141c778107af732cf0dd051223c00be73 (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: d6c60d0141c778107af732cf0dd051223c00be73 - already built by 1
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: 8b766797b64bcb34953f3aa70ca0161c3434bdc2
            Done. Took 1 sec
            Changes found
            {code}


            {code}
            Started on Sep 22, 2016 9:48:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision d6c60d0141c778107af732cf0dd051223c00be73 (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: d6c60d0141c778107af732cf0dd051223c00be73 - already built by 2
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: 8b766797b64bcb34953f3aa70ca0161c3434bdc2
            Done. Took 0.65 sec
            Changes found
            {code}
            ifn Shat Shabaev made changes -
            Description We've got the job with pollscm trigger enabled for two repositories.
            The job is triggered twice with one minute interval, though both commit hashes are the same.

            Pollscm logs:
            {code}
            Started on Sep 22, 2016 9:47:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision d6c60d0141c778107af732cf0dd051223c00be73 (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: d6c60d0141c778107af732cf0dd051223c00be73 - already built by 1
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: 8b766797b64bcb34953f3aa70ca0161c3434bdc2
            Done. Took 1 sec
            Changes found
            {code}


            {code}
            Started on Sep 22, 2016 9:48:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision d6c60d0141c778107af732cf0dd051223c00be73 (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: d6c60d0141c778107af732cf0dd051223c00be73 - already built by 2
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: 8b766797b64bcb34953f3aa70ca0161c3434bdc2
            Done. Took 0.65 sec
            Changes found
            {code}
            We've got the job with pollscm trigger enabled for two repositories.
            The job is triggered twice with one minute interval, though both commit hashes are the same.

            Pollscm logs:
            {code}
            Started on Sep 22, 2016 9:47:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revX> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revX> - already built by 1
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revY>
            Done. Took 1 sec
            Changes found
            {code}


            {code}
            Started on Sep 22, 2016 9:48:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revX> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revX> - already built by 2
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revY>
            Done. Took 0.65 sec
            Changes found
            {code}
            ifn Shat Shabaev made changes -
            Description We've got the job with pollscm trigger enabled for two repositories.
            The job is triggered twice with one minute interval, though both commit hashes are the same.

            Pollscm logs:
            {code}
            Started on Sep 22, 2016 9:47:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revX> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revX> - already built by 1
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revY>
            Done. Took 1 sec
            Changes found
            {code}


            {code}
            Started on Sep 22, 2016 9:48:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revX> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revX> - already built by 2
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revY>
            Done. Took 0.65 sec
            Changes found
            {code}
            We've got the job with pollscm trigger enabled for two repositories.
            The job is triggered twice with one minute interval, though both commit hashes are the same.

            Pollscm logs look like this:
            {code}
            Started on Sep 22, 2016 9:47:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revX> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revX> - already built by 1
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revY>
            Done. Took 1 sec
            Changes found
            {code}


            {code}
            Started on Sep 22, 2016 9:48:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revX> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revX> - already built by 2
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revY>
            Done. Took 0.65 sec
            Changes found
            {code}
            ifn Shat Shabaev made changes -
            Description We've got the job with pollscm trigger enabled for two repositories.
            The job is triggered twice with one minute interval, though both commit hashes are the same.

            Pollscm logs look like this:
            {code}
            Started on Sep 22, 2016 9:47:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revX> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revX> - already built by 1
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revY>
            Done. Took 1 sec
            Changes found
            {code}


            {code}
            Started on Sep 22, 2016 9:48:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revX> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revX> - already built by 2
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revY>
            Done. Took 0.65 sec
            Changes found
            {code}
            We've got the job with pollscm trigger enabled for two repositories.
            The job is triggered twice with one minute interval, though both commit hashes are the same.

            Pollscm logs look like this:
            {code}
            Started on Sep 22, 2016 9:47:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revA> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revA> - already built by 1
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revB>
            Done. Took 1 sec
            Changes found
            {code}


            {code}
            Started on Sep 22, 2016 9:48:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revA> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revA> - already built by 2
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revB>
            Done. Took 0.65 sec
            Changes found
            {code}
            ifn Shat Shabaev made changes -
            Description We've got the job with pollscm trigger enabled for two repositories.
            The job is triggered twice with one minute interval, though both commit hashes are the same.

            Pollscm logs look like this:
            {code}
            Started on Sep 22, 2016 9:47:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revA> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revA> - already built by 1
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revB>
            Done. Took 1 sec
            Changes found
            {code}


            {code}
            Started on Sep 22, 2016 9:48:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revA> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revA> - already built by 2
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revB>
            Done. Took 0.65 sec
            Changes found
            {code}
            We've got the job with pollscm trigger enabled for two repositories.
            The job is triggered twice with one minute interval, though both commit hashes are the same.

            Pollscm logs look like this:
            {code}
            Started on Sep 22, 2016 9:47:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revA> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revA> - already built by 1
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revB>
            Done. Took 1 sec
            Changes found
            {code}


            {code}
            Started on Sep 22, 2016 9:48:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revA> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revA> - already built by 2
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revB>
            Done. Took 0.65 sec
            Changes found
            {code}

            <revA, revB> pair is the same between two job runs.
            ifn Shat Shabaev made changes -
            Description We've got the job with pollscm trigger enabled for two repositories.
            The job is triggered twice with one minute interval, though both commit hashes are the same.

            Pollscm logs look like this:
            {code}
            Started on Sep 22, 2016 9:47:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revA> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revA> - already built by 1
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revB>
            Done. Took 1 sec
            Changes found
            {code}


            {code}
            Started on Sep 22, 2016 9:48:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revA> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revA> - already built by 2
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revB>
            Done. Took 0.65 sec
            Changes found
            {code}

            <revA, revB> pair is the same between two job runs.
            We've got the job with pollscm trigger enabled for two repositories.
            The job is triggered twice with one minute interval, though both commit hashes are the same.

            Pollscm logs look like this:
            {code}
            Started on Sep 22, 2016 9:47:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revA> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revA> - already built by 1
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revB>
            Done. Took 1 sec
            Changes found
            {code}


            {code}
            Started on Sep 22, 2016 9:48:00 AM
            Using strategy: Default
            [poll] Last Built Revision: Revision <revA> (go/master)
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revA> - already built by 2
            Using strategy: Default
            ...
            [poll] Latest remote head revision on refs/heads/master is: <revB>
            Done. Took 0.65 sec
            Changes found
            {code}

            <revA, revB> pair is the same in two job runs.
            sonneveldsmartward Nick Sonneveld made changes -
            Component/s pipeline [ 21692 ]
            danielbeck Daniel Beck made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Not A Defect [ 7 ]
            sonneveldsmartward Nick Sonneveld made changes -
            Resolution Not A Defect [ 7 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            sonneveldsmartward Nick Sonneveld made changes -
            Link This issue is related to JENKINS-39092 [ JENKINS-39092 ]
            pjvanthof Peter Hof made changes -
            Priority Major [ 3 ] Critical [ 2 ]
            pjvanthof Peter Hof made changes -
            Environment Jenkins 2.7.4 Jenkins 2.7.4, 2.120
            pjvanthof Peter Hof made changes -
            Environment Jenkins 2.7.4, 2.120 Jenkins 2.7.4

              People

              • Assignee:
                Unassigned
                Reporter:
                ifn Shat Shabaev
              • Votes:
                5 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: