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

Blueocean favorite failed two of my jobs

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • blueocean-autofavorite-plugin 0.4
      Jenkins 2.19.2
      other plugins are current (and as defined in the docker instance)

      In my Docker instance lts-with-plugins branch I have two different multi-branch pipeline jobs (jenkins-bugs and jenkins-bugs-no-local-branch) which use Jenkins pipeline to exercise various bugs and the fixes related to those bugs.

      When those jobs ran from my Docker instance, the jenkins-bugs/JENKINS-33695 and jenkins-bugs/JENKINS-33827 jobs failed, as did the same two jobs in the jenkins-bugs-no-local-branch.

      The stack trace reported at the end of the failing jobs was:

      hudson.plugins.favorite.Favorites$FavoriteException: Favourite is already set for User: <Mark Waite> Item: <jenkins-bugs-multibranch-pipeline-no-localbranch/JENKINS-33695>
      	at hudson.plugins.favorite.Favorites.addFavorite(Favorites.java:79)
      	at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:90)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:123)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:83)
      	at org.jenkinsci.plugins.workflow.steps.scm.SCMStep$StepExecutionImpl.run(SCMStep.java:73)
      	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:52)
      	at hudson.security.ACL.impersonate(ACL.java:221)
      	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:49)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

      When I ran the jobs again, they succeeded. I assume the stack trace may be some race condition which only happened when both jenkins-bugs and jenkins-bugs-no-local-branch were running concurrently.

      I doubt this will be a common occurrence.

            jamesdumay James Dumay
            markewaite Mark Waite
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: