Details
-
Bug
-
Resolution: Duplicate
-
Low
-
None
-
3.1
-
None
-
Bamboo 3.1 standalone on Windows Server 2008, with Ant 1.7.1, JDK 1.6.0_26.
Description
It seems when using an Bamboo ant builder edits the system Path variable to prefix it with the JDK bin directory. When it does this it also changes the name of the variable to be all upper case. When I use the exec task from ant I end up with two variables 'Path' and 'PATH' which are different.
When I use the ant exec task to run the set command from the command shell like so:
<exec executable="cmd" failonerror="true"> <arg value="/c"/> <arg value="set"/> </exec>
In the bamboo log I can see that there are duplicate paths:
24-Aug-2011 11:00:32 [exec] Path=C:\Program Files (x86)\CollabNet\Subversion Client;C:\cygwin\bin;C:\Program Files\Java\jdk1.6.0_26\bin;C:\apache-ant-1.7.1\bin;C:\apache-maven-3.0.3\bin;C:\Python26;C:\Python26\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin 24-Aug-2011 11:00:32 [exec] PATH=C:\Program Files\Java\jdk1.6.0_26\bin;C:\Program Files (x86)\CollabNet\Subversion Client;C:\cygwin\bin;C:\Program Files\Java\jdk1.6.0_26\bin;C:\apache-ant-1.7.1\bin;C:\apache-maven-3.0.3\bin;C:\Python26;C:\Python26\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin
The first is the default system path, and the second is the edited version added by bamboo.
I think this issue is probably related to
BAM-1660 - Duplicate Path variable(s) added by Bamboo when executing Build on windows
Attachments
Issue Links
- duplicates
-
BAM-8776 Windows: Path env variable wrongly rewritten as PATH during build
- Closed