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 |
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
Can you change ${build.dir}\${solution.file} to ${build.dir}\aaaa\${solution.file} tp figure out where the Solutions part comes from?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.