Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jenkins in monorepo with multiple multibranch pipeline jobs #275

Open
Wayonb opened this issue May 17, 2022 · 3 comments
Open

Jenkins in monorepo with multiple multibranch pipeline jobs #275

Wayonb opened this issue May 17, 2022 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@Wayonb
Copy link

Wayonb commented May 17, 2022

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

  1. 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.

NemProject/nem#56

@Wayonb Wayonb added the documentation Improvements or additions to documentation label May 17, 2022
@aitorpazos
Copy link

@Wayonb Maybe this helps and maybe some have a better solution...

We set a custom name for GH checks for each of the projects in the monorepo in the seed job:

// Configures Status Checks customizations
        traits << 'io.jenkins.plugins.checks.github.status.GitHubSCMSourceStatusChecksTrait' {
          skip(false)
          skipNotifications(true)
          unstableBuildNeutral(true)
          name("${args.jobName} Jenkins build log")
          suppressLogs(false)
          skipProgressUpdates(true)
        }

@Wayonb
Copy link
Author

Wayonb commented Jun 23, 2022

@aitorpazos Thanks. It seems notification is also disabled

@Wayonb
Copy link
Author

Wayonb commented Jun 27, 2023

Any updates on this issue? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants