jenkinsci/github-plugin Received PushEvent for null from ip/domain NullPointerException DefaultPushGHEventSubscriber.onEvent #27202
Labels
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Feature Description
main error happening on jenkins server PushEvent triggering
I find out that in https://github.com/jenkinsci/github-plugin/blob/master/src/main/java/org/jenkinsci/plugins/github/webhook/subscriber/DefaultPushGHEventSubscriber.java#L76
URL repoUrl = push.getRepository().getUrl();
https://github.com/hub4j/github-api/blob/main/src/main/java/org/kohsuke/github/GHObject.java#L98-L100
https://github.com/hub4j/github-api/blob/main/src/main/java/org/kohsuke/github/GHObject.java#L31
private String url;
it is trying to get url data from payload object of
GHRepository
https://github.com/go-gitea/gitea/blob/main/modules/structs/repo.go#L50-L110
but in Repository struct there don't have any url variable
I test it adding the variable and it's now not showing NullPointerException on jenkins server.
Screenshots
No response
The text was updated successfully, but these errors were encountered: