-
Type:
New Feature
-
Resolution: Duplicate
-
Priority:
Minor
-
Component/s: branch-api-plugin
Currently, when an Organization Folder scans a repository containing multiple Jenkinsfiles (e.g., for different platforms like Windows, macOS, Linux), it only creates a single project based on the firstJenkinsfile found by the "Project Recognizer". This is a significant limitation for cross-platform projects (e.g., Electron, Qt, React Native) that require separate build pipelines for each target platform.
Problem:
To work around this limitation, users are forced to create separate Organization Folders for each platform (e.g., my-org-windows, my-org-macos). This is an inefficient and "ugly" solution that duplicates folder-level configuration and complicates project management.
Proposed Solution:
Enhance the Organization Folder's project recognition logic to create a separate Jenkins project for eachvalid Jenkinsfile path found in a repository, rather than stopping at the first one.
The name of each generated project should be derived from the repository name and the Jenkinsfile path to ensure uniqueness and clarity.
Example:
- Repository:​ https://github.com/company/my-electron-app
- Jenkinsfiles in repo:​ Jenkinsfile-win, Jenkinsfile-mac
- Current Behavior:​ Creates one project named my-electron-app(using either Jenkinsfile-win }}or {{{}Jenkinsfile-mac).
- Desired Behavior:​ Creates two projects:
-
- my-electron-app-win
-
- my-electron-app-mac
- duplicates
-
JENKINS-35415 Multiple branch projects per repository with different recognizers
-
- Open
-