jenkinsci / jenkinsci/github-branch-source-plugin
[JENKINS-55761] Webhook not created for API created jobs
- 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
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
Assessment
This issue has not been assessed yet.