Bamboo to perform only checkout of bamboo-specs directory and not the complete checkout of specs repository for specs execution

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Bamboo Specs
    • None
    • 1
    • 3

      As per current Bamboo functionality, the specs repository code will be checked out into the <Bamboo-home>/local-working-dir/serverSide/REPOSITORY_STORED_SPECS directory on the Bamboo server and then the specs code will be parsed and imported into the Bamboo.

      Example:

      Bamboo will first do complete checkout of the specs repository into <Bamboo-home>/local-working-dir/serverSide/REPOSITORY_STORED_SPECS/<repository-folder>/checkout folder:

      2023-04-20 11:25:19,263 DEBUG [15-BAM::SpecsDetection:pool-19-thread-2] [RssDetectionServiceImpl] Detected a possible Bamboo specs change in repository infraatlassian. Running update.
      2023-04-20 11:25:19,379 DEBUG [15-BAM::SpecsDetection:pool-19-thread-2] [RssExecutionDirectoryManagerImpl] Sanitized directory name for repository 15237121 and branch master is repository-15237121-master
      2023-04-20 11:25:19,381 DEBUG [15-BAM::SpecsDetection:pool-19-thread-2] [RepositoryStoredSpecsServiceImpl] RSS workdir is /var/atlassian/application-data/bamboo/local-working-dir/serverSide/REPOSITORY_STORED_SPECS/repository-15237121-master
      2023-04-20 11:25:19,405 DEBUG [15-BAM::SpecsDetection:pool-19-thread-2] [RepositoryStoredSpecsServiceImpl] Checking out repository 15237121 and branch master to /var/atlassian/application-data/bamboo/local-working-dir/serverSide/REPOSITORY_STORED_SPECS/repository-15237121-master/checkout
      

      Then looks for the specs files in the bamboo-specs folder under that checkout folder:

      2023-04-20 11:25:21,804 DEBUG [15-BAM::SpecsDetection:pool-19-thread-2] [RepositoryStoredSpecsServiceImpl] Looking for Bamboo Specs files at /var/atlassian/application-data/bamboo/local-working-dir/serverSide/REPOSITORY_STORED_SPECS/repository-15237121-master/checkout/bamboo-specs
      

      Then will process the specs based on YAML or JAVA specs files found:

      2023-04-20 11:25:21,824 DEBUG [15-BAM::SpecsDetection:pool-19-thread-2] [RepositoryStoredSpecsServiceImpl] /var/atlassian/application-data/bamboo/local-working-dir/serverSide/REPOSITORY_STORED_SPECS/repository-15237121-master/checkout/bamboo-specs/bamboo.yml not found
      2023-04-20 11:25:21,828 DEBUG [15-BAM::SpecsDetection:pool-19-thread-2] [RepositoryStoredSpecsServiceImpl] /var/atlassian/application-data/bamboo/local-working-dir/serverSide/REPOSITORY_STORED_SPECS/repository-15237121-master/checkout/bamboo-specs/bamboo.yaml not found
      2023-04-20 11:25:21,829 DEBUG [15-BAM::SpecsDetection:pool-19-thread-2] [RepositoryStoredSpecsServiceImpl] Yaml Specs weren't found. Trying to execute Java Specs.
      2023-04-20 11:25:22,095 DEBUG [15-BAM::SpecsDetection:pool-19-thread-2] [RepositoryStoredSpecsExecutionServiceImpl] Running command /opt/atlassian/bamboo/tools/apache-maven-3.8.6/bin/mvn --batch-mode --errors --file /var/atlassian/application-data/bamboo/local-working-dir/serverSide/REPOSITORY_STORED_SPECS/repository-15237121-master/checkout/bamboo-specs/specs15339273964705104616.xml -Ppublish-specs -Dspecs.yamlDir=/var/atlassian/application-data/bamboo/local-working-dir/serverSide/REPOSITORY_STORED_SPECS/repository-15237121-master/internal-yamls -Dspecs.useRest=false -Dspecs.useSecurityManager=true -Dspecs.rs.specsSourceId=16056321 -Dspecs.bamboo.instanceName=QXRsYXNzaWFuIEJhbWJvbw== -Dmaven.test.skip=true -Dmaven.compiler.fork=false -Dbamboo.specs.version=9.2.1 -Dbamboo.specs.log.hideDate=true -Drss.default.branch=true -Drss.current.branch=bWFzdGVy
      2023-04-20 11:25:47,199 INFO [14-repository-stored-specs:pool-18-thread-1] [RepositoryStoredSpecsExecutionServiceImpl] Bamboo Specs execution took 25.13 s
      

      Because of this, there might be some scenarios where customers don't want to checkout their complete specs code into Bamboo.

      Suggestion:

      Only to check out the bamboo-specs folder from the Bitbucket Specs repository linked in Bamboo to parse the specs files.

              Assignee:
              Unassigned
              Reporter:
              Jyothi Charupalli
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: