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

Clarification on Git submodules case

    Details

    • Similar Issues:

      Description

      Hi ! Not sure if this an issue. But after reading bitbucket plugin docs I am not clear if plugin works properly for jobs configured as Git SCM ( Git plugin ) with sub modules.

      The history of this question is we have about ~ 300 bitbucket git repositories get together as git sub modules into a single git repository, lets call it MAIN repository. So obviously we *** don not want *** to have a 300 jenkins jobs ( each for every repo ) as every repo is just a logical unit of whole project/system, we want to trigger some actions when whatever repository listed as git submodule at MAIN repository is updated. So I have a following job setup:

      • Git SCM for MAIN repository with sub modules update enabled
      • Some builds steps to be taken when MAIN repos is updated ( read when one of git sub modules is updated )

      I am till not sure if bitbucket plugin trigger my job build using so called URLs "loosely matching", as obviously those URLS - are git sub modules URLs , not MAIN repo one...

        Attachments

          Activity

          Hide
          melezhik Alexey Melezhik added a comment -

          If the job's SCM (git) URL "loosely matches" that of the git repository listed inside the BitBucket-provided payload, AND

          Probably this is not true if:

          job's SCM (git) URL is MAIN repository URL and git repository listed inside the BitBucket-provided is a _some git sub module URL _ ... Correct me if I am wrong ...

          Show
          melezhik Alexey Melezhik added a comment - If the job's SCM (git) URL "loosely matches" that of the git repository listed inside the BitBucket-provided payload, AND Probably this is not true if: job's SCM (git) URL is MAIN repository URL and git repository listed inside the BitBucket-provided is a _some git sub module URL _ ... Correct me if I am wrong ...

            People

            • Assignee:
              Unassigned
              Reporter:
              melezhik Alexey Melezhik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: