jenkinsci / github-autostatus-plugin

Jenkins plugin to provide automatic status for multibranch jobs
https://plugins.jenkins.io/github-autostatus/
MIT License
52 stars 34 forks source link

How do you set up this plugin? #102

Open nahtahul opened 4 years ago

nahtahul commented 4 years ago

How do you set up this plugin and configure it with GitHub? I tried installing it to my Jenkins server, but I cannot find the configuration options referenced in the README. Are there any dependencies that I am missing?

biolauri commented 3 years ago

I'll try to help, although I'm not a maintainer of this plug-in. :-)

The configuration options in the README can be found in the Jenkins settings via Manage Jenkins > Configure System in section Autostatus Config. On the official plugin page, you can find a bit more options (it's also linked in the Readme at the bottom).

In general, to get it working just with GitHub, you need to install this plugin together with GitHub Branch Source (which is a dependency). For me, it works well with GitHub organizations (adding a new GitHub Organization pipeline and configure it with the correct GitHub credentials under Projects in the pipeline config). There seems to be an error with non-org pipelines, see #86 (which is a possible duplicate of #26 & #50).

rogerluan commented 2 years ago

I'll leave something here that took me the whole day to figure out...

Yes, you need to set up the GitHub App. But it's not enough to just change the git credentials provider from SSH + Private Key to GitHub App, you actually have to change the Source from "Git" to "GitHub" in your Multibranch Pipeline (my case). Otherwise it won't report any checks.

Hope this helps someone out there!

rogerluan commented 2 years ago

My setup works just fine in a non-org pipeline, btw.