jenkinsci / jenkinsci/checks-api-plugin

How to publish checks from sub-jobs

Open
#216 1 comment 0 reactions 0 assignees View on GitHub
documentation
Dominant language
Java
Stars
49
Forks
32
Avg merge
2d 5h
Merged PRs (30d)
5

Description

### 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_

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.