[JIRA] (JENKINS-56468) githubPRComment throws NPE

9 views
Skip to first unread message

bahat.gil@gmail.com (JIRA)

unread,
Mar 7, 2019, 1:00:30 PM3/7/19
to jenkinsc...@googlegroups.com
Gil Bahat created an issue
 
Jenkins / Bug JENKINS-56468
githubPRComment throws NPE
Issue Type: Bug Bug
Assignee: Unassigned
Components: github-branch-source-plugin
Created: 2019-03-07 17:59
Environment: Jenkins 2.150.3. branch source plugin 2.4.2
Priority: Minor Minor
Reporter: Gil Bahat

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.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

bitwiseman@gmail.com (JIRA)

unread,
May 29, 2019, 3:32:02 PM5/29/19
to jenkinsc...@googlegroups.com
Liam Newman commented on Bug JENKINS-56468
 
Re: githubPRComment throws NPE

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

maclemming+jenkins@gmail.com (JIRA)

unread,
Oct 3, 2019, 7:33:02 PM10/3/19
to jenkinsc...@googlegroups.com
Scott Hubbard commented on Bug JENKINS-56468
 
Re: githubPRComment throws NPE

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

 

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

maclemming+jenkins@gmail.com (JIRA)

unread,
Feb 20, 2020, 6:07:02 PM2/20/20
to jenkinsc...@googlegroups.com
 
Re: githubPRComment throws NPE

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

bitwiseman@gmail.com (JIRA)

unread,
May 5, 2020, 7:26:03 PM5/5/20
to jenkinsc...@googlegroups.com
Liam Newman commented on Bug JENKINS-56468
 
Re: githubPRComment throws NPE

Scott Hubbard
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

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages