Bamboo adding [ Solutions ] path in my build statement.

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

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

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

3,354 views 8 7
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you