Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo adding [ Solutions ] path in my build statement.

lance_lyons
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 20, 2011

we are having issues with a build that we have converted over from Teamcity taking advantage of the same NAnt scripts,etc. We configured a task that calls an NAnt script's build target passing in a number of parameters. That build target is shown below. When we run the build Bamboo wants to add a folder [ Solutions ] in the path and I cant figure out why. That is shown in the build log excerpt below.

Anybody have any suggestions on why this is happening?

<target name="build" depends="stopwebsite,clean,dependencies" >
<echo message="Running MSBuild on ${build.dir}\${solution.file}" />
<exec program="${framework::get-framework-directory(framework.ver)}\msbuild.exe">

<arg value="${build.dir}\${solution.file}" />
<arg value="/t:Rebuild" />
<arg value="/p:Configuration=${build.configuration}" />
</exec>

<call target="configure" />

<call target="startwebsite" />



</target>

Excerpts from the build log file.

Beginning to execute external process for build 'OMT Trunk - OMT Build Trunk - Default Job'
... running command line:
c:\nant-0.86-beta1\\bin\nant.exe
-buildfile:c:\nantscripts\setversionandbuild.build
-D:deploy.environment=INT
-D:build.dir=e:\bamboo-agent-home\xml-data\build-dir\OMTBLDT-OMTBLDT-JOB1
-D:build.project=Onlife
-D:build.configuration=Release
-D:cienv=true
-D:build.version=22678
-D:framework.ver=net-3.5
-D:solution.file=OnLife.WebSite\OnLifeWeb.sln
build
... in: e:\bamboo-agent-home\xml-data\build-dir\OMTBLDT-OMTBLDT-JOB1

21-Sep-2011 12:45:32 [echo] Running MSBuild on e:\bamboo-agent-home\xml-data\build-dir\OMTBLDT-OMTBLDT-JOB1\[ Solutions ]\OnLife.WebSite\OnLifeWeb.sln
21-Sep-2011 12:45:32 [exec] Microsoft (R) Build Engine Version 3.5.30729.1
21-Sep-2011 12:45:32 [exec] [Microsoft .NET Framework, Version 2.0.50727.3623]
21-Sep-2011 12:45:32 [exec] Copyright (C) Microsoft Corporation 2007. All rights reserved.
21-Sep-2011 12:45:32 [exec]
21-Sep-2011 12:45:32 [exec] MSBUILD : error MSB1009: Project file does not exist.
21-Sep-2011 12:45:32 [exec] Switch: e:\bamboo-agent-home\xml-data\build-dir\OMTBLDT-OMTBLDT-JOB1\[ Solutions ]\OnLife.WebSite\OnLifeWeb.sln

2 answers

0 votes
lance_lyons
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 21, 2011

After making those changes we realized we were referring to a different NAnt Script file that at some time in the past had the [ Solution ] in it.

Sorry for the wasted question

0 votes
Przemek Bruski
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 21, 2011

Can you change ${build.dir}\${solution.file} to ${build.dir}\aaaa\${solution.file} tp figure out where the Solutions part comes from?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events