-
Notifications
You must be signed in to change notification settings - Fork 45
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
First-class multibranch project recogniser #145
Comments
Nice! I currently have the following plugin which filters for branches. It would be great to create projects too https://github.com/jenkinsci/scm-filter-jervis-plugin I hadn't known this before. I'll work on implementing it. |
If you implement the project recognizer, you do not need a custom trait like that—branches (or PRs) will be mapped to branch projects iff they have the right file. Check https://www.jenkins.io/doc/developer/extensions/branch-api/#branchprojectfactory & https://www.jenkins.io/doc/developer/extensions/branch-api/#multibranchprojectfactory for ideas, as well as the proprietary https://docs.cloudbees.com/docs/admin-resources/latest/pipelines/pipeline-as-code#custom-pac-scripts |
Filed as https://issues.jenkins.io/browse/JENKINS-67363 since that is probably more precise. |
There's still YAML filtering in the It will need to parse the YAML to determine if the branch or tag is buildable or excluded via filter. |
I haven't forgotten this. It has just taken me a while to get this project up to date with 100% coverage. I prefer to release with full coverage and I'm going to work toward smaller releases. This next release is going to be a major one. |
If you implement https://javadoc.jenkins.io/plugin/workflow-multibranch/org/jenkinsci/plugins/workflow/multibranch/AbstractWorkflowBranchProjectFactory.html and https://javadoc.jenkins.io/plugin/workflow-multibranch/org/jenkinsci/plugins/workflow/multibranch/AbstractWorkflowMultiBranchProjectFactory.html in a Jenkins plugin, you can create an org folder with the specified project recogniser (
.travis.yml
) without needing any job generation. Commits adding or modifying this file will be honoured immediately.The text was updated successfully, but these errors were encountered: