Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36854

Multi Branch project only adds the first SCM source to the generated jobs

    Details

    • Similar Issues:

      Description

      My project is set up to monitor and check out from 2 SCM sources of Git-type.
      While polling works as expected, the generated jobs use only the first SCM source.

      As a workaround, I tried to add a single Single Repository-type source with 'Mutiple SCMs', but then the SCM-selection list is empty (may a bug in scm-api-plugin)

        Attachments

          Activity

          Hide
          mjdetullio Matthew DeTullio added a comment - - edited

          That's not how Branch Sources work. By adding multiple sources, you're only providing multiple places to find a list of branches which will produce jobs with a single SCM. Multiple SCMs isn't currently a supported use case as far as I know. Semantically there are also a lot of problems with it. For example, the subprojects are named by branch. If you have multiple SCMs that requires a special naming strategy.

          I recommend looking into Pipeline to see if it will support what you're trying to do. If not, then you should create a feature request with the Multiple SCMs plugin to implement multi-branch project support.

          Show
          mjdetullio Matthew DeTullio added a comment - - edited That's not how Branch Sources work. By adding multiple sources, you're only providing multiple places to find a list of branches which will produce jobs with a single SCM. Multiple SCMs isn't currently a supported use case as far as I know. Semantically there are also a lot of problems with it. For example, the subprojects are named by branch. If you have multiple SCMs that requires a special naming strategy. I recommend looking into Pipeline to see if it will support what you're trying to do. If not, then you should create a feature request with the Multiple SCMs plugin to implement multi-branch project support.

            People

            • Assignee:
              mjdetullio Matthew DeTullio
              Reporter:
              15knots Martin Weber
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: