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

Git plugin dev version 2.3.6-0c1a59a8 builds on every poll

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      A change introduced since the release of git plugin 2.3.5 has caused the plugin to start a new build each time the git server is polled for changes. It does not do that for every job, and I'm not clear why it does it for this specific job definition, but I've confirmed several times that this configuration has the problem, and that it did not have the problem with 2.3.5 and earlier.

      Steps to duplicate the problem:

      1. Clone a docker repo with the base config on a branch
        git clone https://github.com/MarkEWaite/docker.git
        
      2. checkout the docker branch to show the problem
        cd docker
        git checkout -b master-JENKINS-26179-poll-now-always-starts-a-build -t origin/master-JENKINS-26179-poll-now-always-starts-a-build
        
      3. Build the docker image
        sudo docker build -t markewaite/JENKINS-26179 .
        
      4. Run the docker image
        sudo docker run -p 9090:8080 -p 50000:50000 -i -t markewaite/JENKINS-26179
        
      5. Create the job
        java -jar jenkins-cli-jar -s http://localhost:9090 create-job JENKINS-26179 < JENKINS-26179.xml
        
      6. Poll for changes so the job will build - Confirm that it builds 5 times (once for each branch)
      7. Press "Poll Now" - Confirm that (as expected) it does not build again
      8. Install git plugin pre-release 2.3.6
      9. Restart Jenkins (to activate the enw git plugin version)
      10. Press "Poll Now" - Confirm that (unexpected - the bug) it builds each time "Poll Now" is pressed

        Attachments

          Issue Links

            Activity

            markewaite Mark Waite created issue -
            markewaite Mark Waite made changes -
            Field Original Value New Value
            Description A change introduced since the release of git plugin 2.3.5 has caused the plugin to start a new build each time the git server is polled for changes. It does not do that for every job, and I'm not clear why it does it for this specific job definition, but I've confirmed several times that this configuration has the problem, and that it did not have the problem with 2.3.5 and earlier.

            Steps to duplicate the problem:
            # Clone a docker repo with the base config on a branch
            {code:bash}
            git clone https://github.com/MarkEWaite/docker.git
            {code}
            # checkout the docker branch to show the problem
            {code:bash}
            cd docker
            git checkout -b master-JENKINS-26179-poll-now-always-starts-a-build -t origin/master-JENKINS-26179-poll-now-always-starts-a-build
            {code}
            # Build the docker image
            {code:bash}
            sudo docker build -t markewaite/JENKINS-26179 .
            {code}
            # Run the docker image
            {code:bash}
            sudo docker run -p 9090:8080 -p 50000:50000 -i -t markewaite/JENKINS-26179
            {code}
            # Create the job
            {code:bash}
            java -jar jenkins-cli-jar -s http://localhost:9090 create-job JENKINS-26179 < JENKINS-26179.xml
            {code}
            # Poll for changes so the job will build - Confirm that it builds 5 times (once for each branch)
            # Press "Poll Now" - Confirm that (as expected) it does not build again
            # Install git plugin pre-release 2.3.6
            # Restart Jenkins (to activate the enw git plugin version)
            # Press "Poll Now" - Confirm that (unexpected - the bug) it builds each time "Poll Now" is pressed
            A change introduced since the release of git plugin 2.3.5 has caused the plugin to start a new build each time the git server is polled for changes. It does not do that for every job, and I'm not clear why it does it for this specific job definition, but I've confirmed several times that this configuration has the problem, and that it did not have the problem with 2.3.5 and earlier.

            Steps to duplicate the problem:
            # Clone a docker repo with the base config on a branch
            {code}
            git clone https://github.com/MarkEWaite/docker.git
            {code}
            # checkout the docker branch to show the problem
            {code}
            cd docker
            git checkout -b master-JENKINS-26179-poll-now-always-starts-a-build -t origin/master-JENKINS-26179-poll-now-always-starts-a-build
            {code}
            # Build the docker image
            {code}
            sudo docker build -t markewaite/JENKINS-26179 .
            {code}
            # Run the docker image
            {code}
            sudo docker run -p 9090:8080 -p 50000:50000 -i -t markewaite/JENKINS-26179
            {code}
            # Create the job
            {code}
            java -jar jenkins-cli-jar -s http://localhost:9090 create-job JENKINS-26179 < JENKINS-26179.xml
            {code}
            # Poll for changes so the job will build - Confirm that it builds 5 times (once for each branch)
            # Press "Poll Now" - Confirm that (as expected) it does not build again
            # Install git plugin pre-release 2.3.6
            # Restart Jenkins (to activate the enw git plugin version)
            # Press "Poll Now" - Confirm that (unexpected - the bug) it builds each time "Poll Now" is pressed
            markewaite Mark Waite made changes -
            Assignee Nicolas De Loof [ ndeloof ] Mark Waite [ markewaite ]
            ndeloof Nicolas De Loof made changes -
            Remote Link This issue links to "potential fix (Web Link)" [ 12958 ]
            scm_issue_link SCM/JIRA link daemon made changes -
            Status Open [ 1 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            markewaite Mark Waite made changes -
            Status Resolved [ 5 ] Closed [ 6 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 163932 ] JNJira + In-Review [ 208914 ]
            i_more Ingo Mohr made changes -
            Link This issue relates to JENKINS-37118 [ JENKINS-37118 ]

              People

              • Assignee:
                markewaite Mark Waite
                Reporter:
                markewaite Mark Waite
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: