jenkinsci / jenkinsci/github-checks-plugin

Jenkins in monorepo with multiple multibranch pipeline jobs

Open
#275 3 comments 0 reactions 0 assignees View on GitHub
documentation
Dominant language
Java
Stars
89
Forks
50
Avg merge
13h 55m
Merged PRs (30d)
7

Description

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

I have a GitHub monorepo setup. There is a seed job that monitors a build
configuration file when new projects are added to a repo. The seed job will create
new multibranch pipeline job for that project. Thus the monorepo has
multiple multibranch jobs. Each job only runs when files are updated in its
project.
I have a couple of questions.

1. I noticed that the Jenkins GitHub Check does not always show the
correct status or job for that repo. Should each job have its own unique GitHub Status
name?

![GitHub Check Status](https://user-images.githubusercontent.com/44558938/168888304-4c60ef33-48bf-43c3-b062-d621f00246ea.png)


2. With this setup, each pull request can have one or more jobs running
at once. GitHub branch protection rule requires selecting the check stat=
us
needed to check in. Since each PR will have different jobs, then cannot
select any specific job. Is there a plugin that will aggregate status
checks across multiple jobs?

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

I havent been able to find any documentation on how to configure a scenario where a repo has multiple jobs running. Not sure if I missed anything.

e.g. This PR shows the Jenkins Check as green but some of the jobs seems to fail.

https://github.com/NemProject/nem/pull/56

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.