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

Bamboo starts builder in wrong directory in command shell in windows if HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor is set

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Medium Medium
    • None
    • 2.2.1
    • Builds
    • None

      if there is a win registry entry
      HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor and its AutoRun property is to execute cd \
      then the builder (ant) will be started in c:\ or d:\ instead of in the correct working copy directory path - and the builder will not find the files it is looking for.

      Bamboo should make sure that the builder/build script is executed in the right directory. ATM bamboo assumes that there are not default commands run when a command shell is opened.

      This directory is known to bamboo - for example
      Starting to build 'TESTCI - TESTCIPLAN'
      ... running command line: D:\devtools\apache-ant-1.7.1\bin\ant.bat -f build.xml -debug build
      ... in : D:\Bamboo\bamboo-home\xml-data\build-dir\TESTCI-TESTCIKEY\build
      ... using java.home: D:\devtools\Java\jdk1.5.0_17

      A good place to read about the registry setting for the command shell : http://www.msfn.org/board/lofiversion/index.php/t45360.html

            [BAM-3858] Bamboo starts builder in wrong directory in command shell in windows if HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor is set

            True for running a maven build as well.

            Should ensure the call to cmd.exe specifies /d to disable execution of autorun commands.

            Neil Laurance added a comment - True for running a maven build as well. Should ensure the call to cmd.exe specifies /d to disable execution of autorun commands.

              Unassigned Unassigned
              ukuhnhardt Ulrich Kuhnhardt [Atlassian]
              Affected customers:
              4 This affects my team
              Watchers:
              4 Start watching this issue

                Created:
                Updated: