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

Autofavorite makes the entire Blue Ocean unusable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins ver. 2.136
      Blue Ocean
      1.8.3

      The version 1.2.2 causes exception for the first build of every branch and PR. See the exception at the end.

      Additional data points

       

      java.lang.NullPointerException
          at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:109)
          at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:127)
          at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:144)
          at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120)
          at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:303)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429) 

       

          [JENKINS-53805] Autofavorite makes the entire Blue Ocean unusable

          Renjith Pillai created issue -
          Renjith Pillai made changes -
          Description Original: The version 1.2.2 causes exception for the first build of every branch and PR. See the exception at the end.

          Additional data points
           * We saw this reported in JENKINS-50715 which suggests the pull request [https://github.com/jenkinsci/blueocean-autofavorite-plugin/pull/16] solves the issue.
           * We built the latest source from [https://github.com/jenkinsci/blueocean-autofavorite-plugin] and the issue still exists
           * We make a copy of the code and introduced a hack to have a try catch inside the entire {{onCheckout}} method to avoid this.
           * This is really a Priority one bug for Blue Ocean. Now since [~jamesdumay] has left CloudBees are we stuck with Blue Ocean not receiving the needed attention?

           
          {code:java}
          java.lang.NullPointerException
              at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:109)
              at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:127)
              at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:144)
              at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120)
              at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:303)
              at hudson.model.ResourceController.execute(ResourceController.java:97)
              at hudson.model.Executor.run(Executor.java:429) {code}
           
          New: The version 1.2.2 causes exception for the first build of every branch and PR. See the exception at the end.

          Additional data points
           * We saw this reported in JENKINS-50715 which suggests the pull request [https://github.com/jenkinsci/blueocean-autofavorite-plugin/pull/16] solves the issue.
           * We built the latest source from [https://github.com/jenkinsci/blueocean-autofavorite-plugin] and the issue still exists
           * We made a copy of the code and introduced a hack to have a try catch inside the entire {{onCheckout}} method to avoid this.
           * This is really a Priority one bug for Blue Ocean. Now since [~jamesdumay] has left CloudBees are we stuck with Blue Ocean not receiving the needed attention?

           
          {code:java}
          java.lang.NullPointerException
              at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:109)
              at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:127)
              at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:144)
              at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120)
              at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:303)
              at hudson.model.ResourceController.execute(ResourceController.java:97)
              at hudson.model.Executor.run(Executor.java:429) {code}
           

            jamesdumay James Dumay
            vrenjith Renjith Pillai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: