• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins 2.150.3. branch source plugin 2.4.2

      the following stage generates NPE, even when built against a PR:

      stage ('mobileproduct - Prebuild') {

       githubPRComment comment: githubPRMessage('Build ${BUILD_NUMBER} ${BUILD_STATUS}')
      }

       

      the following NPE is generated:
      java.lang.NullPointerException
      at org.jenkinsci.plugins.github.pullrequest.utils.JobHelper.getGhRepositoryFromPRTrigger(JobHelper.java:161)
      at org.jenkinsci.plugins.github.pullrequest.utils.JobHelper.getGhPullRequest(JobHelper.java:177)
      at org.jenkinsci.plugins.github.pullrequest.publishers.impl.GitHubPRCommentPublisher.perform(GitHubPRCommentPublisher.java:73)
      at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
      at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
      at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      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:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)
      Finished: FAILURE

      the checkout phase checks out multiple projects, even though I am not sure it's supposed to matter.

          [JENKINS-56468] githubPRComment throws NPE

          Liam Newman added a comment -

          gilbahat
          Does this still happen in the latest github-branch-source-plugin (2.5.3)?

          Liam Newman added a comment - gilbahat Does this still happen in the latest github-branch-source-plugin (2.5.3)?

          Scott Hubbard added a comment -

          I am running the plugin version 2.5.8 on Jenkins 2.197 and I see the same exception.

           

          Scott Hubbard added a comment - I am running the plugin version 2.5.8 on Jenkins 2.197 and I see the same exception.  

          Scott Hubbard added a comment -

          Any update on this?  It still happens on plugin version 2.6.0.

          Scott Hubbard added a comment - Any update on this?  It still happens on plugin version 2.6.0.

          Liam Newman added a comment -

          shubbard
          No update yet. If you'd like to join the plugin's gitter, I'd be happy to answer questions about what would need to be done to fix this: https://gitter.im/jenkinsci/github-branch-source-plugin

          Liam Newman added a comment - shubbard No update yet. If you'd like to join the plugin's gitter, I'd be happy to answer questions about what would need to be done to fix this: https://gitter.im/jenkinsci/github-branch-source-plugin

            Unassigned Unassigned
            gilbahat Gil Bahat
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: