Organization Folder: Support creating multiple projects from a single repository based on multiple Jenkinsfile paths

XMLWordPrintable

      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:

      • 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

            Assignee:
            Michael
            Reporter:
            Michael
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: