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

Jobs are triggered twice occasionally

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Blocker
    • Resolution: Not A Defect
    • core
    • None
    • Master: Hudson ver. 1.363, RHEL Linux 2.6.18-164.el5
      Slaves: RHEL Linux 2.6.9-55.0.2.ELhugemem & Windows XP SP3

    Description

      After Hudson update from version 1.361 to 1.363 we occasionally see jobs being triggered twice. This seems to happen in both cases, when upstream job triggers downstream job, and remotely triggering a job via curl in a script.

      All of our jobs are free-style jobs.

      Attachments

        Issue Links

          Activity

            I have tried steps mentioned by  sangeetawakhale , this got resolved.

            Thanks !

            shiluveru Bharath Shiluveru added a comment - I have tried steps mentioned by   sangeetawakhale , this got resolved. Thanks !
            samt Sam Talebbeik added a comment -

            Thanks sangeetawakhale for the tip. Your workaround fixed the issue.

            My "upstream job" was triggering a "downstream job" twice all the time using "Trigger parametrized build on other projects" plugin. My Jenkins version is 2.73.2

            I had to go to the "downstream job" -> Build Trigger -> remove "Build after other projects are built" 

            samt Sam Talebbeik added a comment - Thanks sangeetawakhale for the tip. Your workaround fixed the issue. My "upstream job" was triggering a "downstream job" twice all the time using "Trigger parametrized build on other projects" plugin. My Jenkins version is 2.73.2 I had to go to the "downstream job" -> Build Trigger -> remove "Build after other projects are built" 
            slide_o_mix Alex Earl added a comment -

            It looks like this was mainly improper upstream/downstream job relationships that were defined.

            slide_o_mix Alex Earl added a comment - It looks like this was mainly improper upstream/downstream job relationships that were defined.
            jayanmn Jayan MN added a comment -

            I was searching for another issue but this masked it. Adding a link if that helps someone : https://issues.jenkins-ci.org/browse/JENKINS-58296  Projects are triggered twice when using File Parameter and Firefox 67

            jayanmn Jayan MN added a comment - I was searching for another issue but this masked it. Adding a link if that helps someone :  https://issues.jenkins-ci.org/browse/JENKINS-58296   Projects are triggered twice when using File Parameter and Firefox 67
            lprimak Lenny added a comment -

            This is still happening.

            Perhaps unrelated, but this is an exception that was coincidental with the duplicate trigger:

            Sep 21, 2021 5:23:44 PM SEVERE io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckoutUnexpected error when retrieving changeset
            hudson.plugins.git.GitException: Error: git whatchanged --no-abbrev -M "--format=commit %H%ntree %T%nparent %P%nauthor %aN <%aE> %ai%ncommitter %cN <%cE> %ci%n%n%w(0,4,4)%B" -n 1 1bad1afcb14a41a82963e987511d6536874709c4 in /Users/software/var/jenkins/workspace/owlogix-org-repo_flowlogix_PR-85
            	at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:1272)
            	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.getChangeSet(FavoritingScmListener.java:159)
            	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:84)
            	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:155)
            	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97)
            	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84)
            	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
            	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
            	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
            	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
            	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
            	at java.base/java.lang.Thread.run(Thread.java:829)
            
            lprimak Lenny added a comment - This is still happening. Perhaps unrelated, but this is an exception that was coincidental with the duplicate trigger: Sep 21, 2021 5:23:44 PM SEVERE io.jenkins.blueocean.autofavorite.FavoritingScmListener onCheckoutUnexpected error when retrieving changeset hudson.plugins.git.GitException: Error: git whatchanged --no-abbrev -M "--format=commit %H%ntree %T%nparent %P%nauthor %aN <%aE> %ai%ncommitter %cN <%cE> %ci%n%n%w(0,4,4)%B" -n 1 1bad1afcb14a41a82963e987511d6536874709c4 in /Users/software/ var /jenkins/workspace/owlogix-org-repo_flowlogix_PR-85 at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$6.execute(CliGitAPIImpl.java:1272) at io.jenkins.blueocean.autofavorite.FavoritingScmListener.getChangeSet(FavoritingScmListener.java:159) at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:84) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:155) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:97) at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:84) at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang. Thread .run( Thread .java:829)

            People

              kohsuke Kohsuke Kawaguchi
              tiainpa tiainpa
              Votes:
              22 Vote for this issue
              Watchers:
              28 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: