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

RSS will not work if Bamboo Home directory path contains spaces

    XMLWordPrintable

Details

    Description

      Summary

      On Windows, if Bamboo Home contains spaces, the RSS Maven will fail

      Environment

      • Windows
      • Repository Stored Specs

      Steps to Reproduce

      1. Configure Bamboo Home in C:\Users\My User\bamboo-home
      2. Setup and run repository Stored Specs

      Expected Results

      Specs runs as expected

      Actual Results

      The below exception is thrown in the job log:

      C:\Users\My Username\bamboo-home\xml-data\build-dir\serverSide\REPOSITORY_STORED_SPECS\path\to\RSS\dir>"C:\Program Files\Bamboo\tools\apache-maven-3.5.0\bin\mvn.cmd" --batch-mode --file C:\Users\My Username\bamboo-home\xml-data\build-dir\serverSide\REPOSITORY_STORED_SPECS\path\to\RSS\dir\specs12345678.xml -Ppublish-specs -Dspecs.yamlDir=C:\Users\My Username\bamboo-home\xml-data\build-dir\serverSide\REPOSITORY_STORED_SPECS\path\to\output -Dspecs.useRest=false -Dspecs.useSecurityManager=true -Dspecs.rs.specsSourceId=1212417 -Dmaven.test.skip=true -Dmaven.compiler.fork=false -Dbamboo.specs.version=6.3.0 
      POM file C:\Users\My specified the -f/--file command-line argument does not exist 
      ....
      2017-12-29 16:45:38,747 ERROR [AtlassianEvent::0-BAM::EVENTS:pool-1-thread-9] [AsynchronousAbleEventDispatcher] There was an exception thrown trying to dispatch event [com.atlassian.stash.plugin.remote.event.StashBranchChangedRemoteEvent@71584c06[branchName=master,repositoryProject=TEST,repositorySlug=test-specs,committer=my.user,sourceId=<hash>,sourceUrl=http://bbserver-url:7990]] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.bamboo.plugins.stash.events.BranchChangedEventListener.onBranchChangedEvent(com.atlassian.stash.plugin.remote.event.StashBranchChangedRemoteEvent), listener=com.atlassian.bamboo.plugins.stash.events.BranchChangedEventListener@369a7daa}]
      java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository Repository (1234567890) for Bamboo Specs
      	at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:54)
      	... (truncated)
      Caused by: java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository Repository (1234567890) for Bamboo Specs
      	at com.google.common.base.Throwables.propagate(Throwables.java:160)
      	... (truncated)
      Caused by: com.atlassian.bamboo.repository.RepositoryException: Unable to scan repository Test Specs (425989) for Bamboo Specs
      	at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithMaven$8(RepositoryStoredSpecsServiceImpl.java:727)
      	... (truncated)
      Caused by: com.atlassian.utils.process.ProcessException: Non-zero exit code: 1
      	at com.atlassian.utils.process.PluggableProcessHandler.complete(PluggableProcessHandler.java:69)
      	... (truncated)
      

      Workaround

      Set Bamboo Home to the short name (DOS 8.3 format).
      To find this, you can run the following commands in the Command prompt:

      cd C:\Users\
      dir /x
      

      For example: C:\Users\My Username\bamboo-home could be C:\Users\MYUSER~1\bamboo-home.
      Then, update the bamboo.home value in <bamboo-install>\atlassian-bamboo\WEB-INF\classes\bamboo-init.properties to the short name.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ezeidan Elias Zeidan (they/them)
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: