Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-22099

Submodule build process hangs when using branch as submodule

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 8.2.5
    • Builds

    Description

      Issue Summary

      Submodule checkout fails if a branch is set in .gitmodules.

      This is reproducible on Data Center: (yes) / (no)

      Steps to Reproduce

      1. Create a plan with Master as Main module and Branch Submodule from same repository(BB)
      2. Build the plan

      Expected Results

      Build to be completed successfully with submodule

      Actual Results

      submodule checkout fails and Build hangs.

      The below exception is thrown in the atlassian-bamboo-agent.log file:

       Checkout to revision de3cbdf7aab338f153be24576b7e467b68b5791b has failed.command ['D:\Development Tools\Git\cmd\git.exe' submodule update --init --recursive] failed with code 1.
      

      Workaround

      Have configured SSH keys between Bamboo Server/Agent and the Repository then run "git submodule update --init --recursive --remote" from a Script Task right after the Checkout is done.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              562af27be96e Santhosh Thokur Raghava
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: