jenkinsci / checks-api-plugin

Jenkins plugin that defines an API for Jenkins to publish checks to SCM platforms.
https://plugins.jenkins.io/checks-api/
MIT License
42 stars 28 forks source link

How to publish checks from sub-jobs #216

Open nmguse-bighealth opened 1 year ago

nmguse-bighealth commented 1 year ago

Describe your use-case which is not covered by existing documentation.

I am trying to figure out how it might be possible to publish checks from within a sub-job.

We have many microservices which all are built on top of a common framework. We would like to have one shared job that contains all of the logic related to performing CI for all of these microservices. That way, the Jenkinsfile in each microservice can be kept simple (it just runs the shared CI job) and doesn't need to be changed across dozens of places every time we want to add/modify how their CI works. We'd like to publish custom checks from within the shared sub-job, since that's where we'll have things like junit results/etc.

Do you have any information or examples for how we might be able to pass through the context necessary to publish a check from a sub-job? I haven't had luck finding relevant information through my searches thus far.

Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.

No response

KalleOlaviNiemitalo commented 1 year ago

Seems related to https://github.com/jenkinsci/checks-api-plugin/issues/122 and perhaps https://github.com/jenkinsci/github-checks-plugin/issues/112.