jenkinsci / jenkinsci/github-branch-source-plugin

[JENKINS-55761] Webhook not created for API created jobs

Open
#1,233 0 comments 0 reactions 0 assignees View on GitHub
component:github-branch-source-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
217
Forks
398
Avg merge
30m
Merged PRs (30d)
1

Description

Hey,

adding a new MultiBranch Pipeline via the UI works fine, and also create a webhook in GitHub.

Altough if the Job is created by API (with exact same job config.xml) the Webhook is not being created in Github. Even after a manual trigger of a build, the Hook is not beeing triggered. Nothing related can be found in the logs.

Is there any way to force the trigger creation (eg via groovy script) in an automatic way, or this simply a bug that needs to be fixed?

---
Originally reported by webrat, imported from: Webhook not created for API created jobs


  • status: Open
  • priority: Minor
  • component(s): github-branch-source-plugin
  • label(s): github-branch-source-plugin, plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-02

Raw content of original issue

Hey,

adding a new MultiBranch Pipeline via the UI works fine, and also create a webhook in GitHub.
Altough if the Job is created by API (with exact same job config.xml) the Webhook is not being created in Github. Even after a manual trigger of a build, the Hook is not beeing triggered. Nothing related can be found in the logs.

Is there any way to force the trigger creation (eg via groovy script) in an automatic way, or this simply a bug that needs to be fixed?

environment

```
Jenkins 2.150.2 (Official Docker image)

github-branch-source-plugin 2.4.2
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.