• Blue Ocean 1.5 - beta 2

      The autofavorite plugin has failed pipeline builds in several occasions. I didn't find a pattern yet, but restarting the build seemed to help.}}

      {{Pull request #2 opened
      Connecting to ...
      Checking out git ...@script to read Jenkinsfile
      Cloning the remote Git repository
      ...
      Commit message: "check"
      First time build. Skipping changelog.

      GitHub has been notified of this commit’s build result

      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:143)
      at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120)
      at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:271)
      at hudson.model.ResourceController.execute(ResourceController.java:97)
      at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE}}

       

          [JENKINS-49774] NPE in Autofavorite plugin

          kutzi created issue -
          kutzi made changes -
          Description Original: {{The autofavorite plugin has failed pipeline builds in several occasions. I didn't find a pattern yet, but restarting the build seemed to help.}}

          Pull request #2 opened
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-2]Connecting to ...
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-3]Checking out git ...
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-21] > git config core.sparsecheckout # timeout=10
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-22] > git checkout -f 035d5953f1344f13cf12b9d62c6d661a69e2a6c2
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-23] > git merge 01419d665c6de32d37d75c5a85f0aeedf86d7403 # timeout=10
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-24] > git rev-parse HEAD^\{commit} # timeout=10
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-25]Merge succeeded, producing 035d5953f1344f13cf12b9d62c6d661a69e2a6c2
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-26]Checking out Revision 035d5953f1344f13cf12b9d62c6d661a69e2a6c2 (PR-2)
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-27] > git config core.sparsecheckout # timeout=10
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-28] > git checkout -f 035d5953f1344f13cf12b9d62c6d661a69e2a6c2
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-29]Commit message: "check"
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-30]First time build. Skipping changelog.
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-31]
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-32]GitHub has been notified of this commit’s build result
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-33]
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-34]java.lang.NullPointerException
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-35] at io.jenkins.blueocean.autofavorite.FavoritingScmListener.onCheckout(FavoritingScmListener.java:109)
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-36] at org.jenkinsci.plugins.workflow.steps.scm.SCMStep.checkout(SCMStep.java:127)
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-37] at org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition.create(CpsScmFlowDefinition.java:143)
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-38] at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120)
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-39] at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:271)
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-40] at hudson.model.ResourceController.execute(ResourceController.java:97)
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-41] at hudson.model.Executor.run(Executor.java:429)
          [|http://jenkins-master.swat.ham.sg-cloud.co.uk/blue/organizations/jenkins/Website%20GH%20Orga%2Fcara-jobs/detail/PR-2/1/pipeline#log-42]Finished: FAILURE
           
          New: The autofavorite plugin has failed pipeline builds in several occasions. I didn't find a pattern yet, but restarting the build seemed to help.}}

          {{
          Pull request #2 opened
          Connecting to ...
          Checking out git ...@script to read Jenkinsfile
          Cloning the remote Git repository
          ...
          Commit message: "check"
          First time build. Skipping changelog.

          GitHub has been notified of this commit’s build result

          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:143)
          at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120)
          at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:271)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE
          }}
           
          kutzi made changes -
          Description Original: The autofavorite plugin has failed pipeline builds in several occasions. I didn't find a pattern yet, but restarting the build seemed to help.}}

          {{
          Pull request #2 opened
          Connecting to ...
          Checking out git ...@script to read Jenkinsfile
          Cloning the remote Git repository
          ...
          Commit message: "check"
          First time build. Skipping changelog.

          GitHub has been notified of this commit’s build result

          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:143)
          at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120)
          at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:271)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE
          }}
           
          New: The autofavorite plugin has failed pipeline builds in several occasions. I didn't find a pattern yet, but restarting the build seemed to help.}}


          {{Pull request #2 opened
          Connecting to ...
          Checking out git ...@script to read Jenkinsfile
          Cloning the remote Git repository
          ...
          Commit message: "check"
          First time build. Skipping changelog.

          GitHub has been notified of this commit’s build result

          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:143)
          at org.jenkinsci.plugins.workflow.multibranch.SCMBinder.create(SCMBinder.java:120)
          at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:271)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          Finished: FAILURE}}

           
          James Dumay made changes -
          Assignee Original: James Dumay [ jamesdumay ] New: Vivek Pandey [ vivek ]

          James Dumay added a comment -

          vivek this one looks reasonably serious - perhaps the code needs to be more defensive for null user properties?

          James Dumay added a comment - vivek this one looks reasonably serious - perhaps the code needs to be more defensive for null user properties?
          James Dumay made changes -
          Sprint New: Blue Ocean 1.5 - beta 2 [ 481 ]

          Vivek Pandey added a comment -

          Hi kutzi, Looking at the code, line 109:

          if (Favorites.isFavorite(author, job)) {
          

          both author and job are always non-null, something in favorites plugin is throwing NPE. Please provide complete stack trace so that we know where to fix this NPE.

          Vivek Pandey added a comment - Hi kutzi , Looking at the code, line 109: if (Favorites.isFavorite(author, job)) { both author and job are always non-null, something in favorites plugin is throwing NPE. Please provide complete stack trace so that we know where to fix this NPE.

          kutzi added a comment -

          Sorry, I don't see that error anymore and the build logs of the builds, where it happened, are already gone.

          You can close the issue if you like to and I'll reopen it if I encounter the issue, again.

          kutzi added a comment - Sorry, I don't see that error anymore and the build logs of the builds, where it happened, are already gone. You can close the issue if you like to and I'll reopen it if I encounter the issue, again.

          Vivek Pandey added a comment -

          kutzi No problem. It might have been fixed since reported. Anyways, reopen it if you find it reproducing. Thanks for reporting.

          Vivek Pandey added a comment - kutzi No problem. It might have been fixed since reported. Anyways, reopen it if you find it reproducing. Thanks for reporting.
          Vivek Pandey made changes -
          Resolution New: Cannot Reproduce [ 5 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            vivek Vivek Pandey
            kutzi kutzi
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: