Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-20676

Specs scan fail due to submodule

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Tracked Elsewhere
    • Affects Version/s: 6.10.3, 6.10.2
    • Fix Version/s: None
    • Component/s: Bamboo Specs
    • Labels:
      None

      Description

      Issue Summary

      If Submodule option is enabled in the repository, Specs scan will fail due to unable to checkout submodule repository (BAM-11369)

      Steps to Reproduce

      1. Enable Submodule option in the Bamboo repository setting
      2. Run Specs scan

      Expected Results

      Bamboo will checkout repository with submodule without problem

      Actual Results

      Bamboo fail to checkout submodule repository.
      The below exception is thrown in the atlassian-bamboo.log file:

      2019-10-15 15:48:57,335 INFO [15-BAM::SpecsDetection:pool-22-thread-2] [RssDetectionRunnable] Exception while executing RSS detection for repository 524291
      java.lang.RuntimeException: com.atlassian.bamboo.plugins.stash.repository.StashRepositoryException: com.atlassian.bamboo.repository.RepositoryException: Checkout to revision cefdb817452b8c7254e7e1767d92d2041ef1dca9 has failed.command [/usr/local/bin/git submodule update --init --recursive] failed with code 1. Working directory was [/Volumes/Atlassian/bamboo/atlassian-bamboo-6.10.3/home/xml-data/build-dir/serverSide/REPOSITORY_STORED_SPECS/repository-524291/checkout]., stderr:
      Submodule 'test2' (ssh://09e10741-04d7-4c21-8757-935ac9bc29d4@127.94.0.1:53966/tst/test2.git) registered for path 'test2'
      Cloning into 'test2'...
      Warning: Permanently added '[127.94.0.1]:53966' (RSA) to the list of known hosts.
      git@xxx: Permission denied (publickey).
      fatal: Could not read from remote repository.
      
      Please make sure you have the correct access rights
      and the repository exists.
      fatal: clone of 'ssh://git@xxx/tst/test2.git' into submodule path 'test2' failed
      ...
      	at com.google.common.base.Throwables.propagate(Throwables.java:160)
      	at com.atlassian.bamboo.utils.BambooThrowables.propagate(BambooThrowables.java:20)
      	at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.runBambooSpecs(RepositoryStoredSpecsServiceImpl.java:320)
      	at com.atlassian.bamboo.configuration.external.RssDetectionServiceImpl.runRssDetection(RssDetectionServiceImpl.java:284)
      	at com.atlassian.bamboo.configuration.external.detection.RssDetectionRunnable.run(RssDetectionRunnable.java:42)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      

      Notes

      Submodule checkout fail due to https://jira.atlassian.com/browse/BAM-11369

      Workaround

      Add the SSH key in the machine hosting Bamboo to the Submodule repository

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              klfoong Foong
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: