tfsbuild - Team Foundation Build Service building in wrong location - VS2008 Team System -
this concerns how can define tfs build agent pulls sourcecode before/when doing build.
we rebuilding our obsolete , slow winxp build server on faster new win7x64 pro server. software has been installed, , existing build definitions start, using new build agent definition. visible differences between old , new build agents agent name , target server name: builds defined dropped same share on each server (\\servername\builds), , each build agent defines build location $(temp)\$(builddefinitionpath). have taken care recreate same build location folder structure on new machine on old. both build services run under same account (\devbuildserver), although builds run without logging in windows.
howver there snag: using same build definition old build agent correctly gets source code desired target location (d:\temp on old server), new build agent gets wrong drive , path on new server.
from logs:
old build agent: teamfoundationserverurl="http://devserver2:8080/" builduri="vstfs:///build/build/3437" force=true overwrite=false populateoutput=false preview=false recursive=true version="c6165" workspace="devbuildserver_25" getting d:\temp\matrix5branches\matrix5313\sources....etc
new build agent: teamfoundationserverurl="http://devserver2:8080/" builduri="vstfs:///build/build/3459" force=true overwrite=false populateoutput=false preview=false recursive=true version="c6176" workspace="devbuildserver2_30" getting c:\users\devbuildserver\appdata\local\temp\matrix5branches....etc
the problem on new server target path long, build fails. need have builds on separate drive not backed up. on new build server need set target path source code d:\temp. question is: how/where location/path build target folder (ie build done) set? i've tried creating new build agent definition , new build scratch can't find anywhere defined, is, somewhere, because whoever built old build server has managed it.
tia - if fixed today can forward relaxed weekend....
the problem lies in using $(temp) in working directory
on build agent properties. uses temp environment variable defaults %systemdrive%\users{username}\appdata\local\temp on windows 7
there 2 options:
- change temp environment variable
- change working directory setting on build agents
Comments
Post a Comment