Pass in parameter to TeamBuild  
Author Message
simon burgess





PostPosted: Team Foundation Server - Build Automation, Pass in parameter to TeamBuild Top

I know that TFSBuild.rsp can be used to pass in msbuild parameters to the command line when a TeamBuild is fired, but is there any way to do this on the command line directly e.g. in my TFSBuild.rsp file I have:

/p:SkipClean=true;SkipInitializeWorkspace=true;ForceGet=false

this will carry out an incremental build,, but I dont always want to do it so I'd rather pass these in on the command line when using TFSBuild.exe to start a build. Is it possible



Visual Studio Team System43  
 
 
Jeff B.





PostPosted: Team Foundation Server - Build Automation, Pass in parameter to TeamBuild Top

Simon,

TFSBuild.exe does not allow MSBuild parameters to be passed in. Pretty much the only customization it allows is to specify a Build Machine Name and Build Directory (along with the standard TFS Server, Team Project, and Build Type settings).



 
 
Pramod_SN





PostPosted: Team Foundation Server - Build Automation, Pass in parameter to TeamBuild Top

We did face the same issue.
But we created a file called "c:\Project1\build.option" in the build server

<Propertygroup>
<SkipClean>true</SkipClean>
<SkipInitializeWorkspace>true</SkipInitializeWorkspace>
<ForceGet>false</ForceGet>
</Propertygroup>

and we imported the file in the TeamBuild.proj file.
It is not a good solution if we have multiple build server.

-Pramod


 
 
simon burgess





PostPosted: Team Foundation Server - Build Automation, Pass in parameter to TeamBuild Top

thanks for the reply the problem I want to condition the import of the file when I fire the build, I think my only option is seperate build types but will mean I need quite a few
 
 
Swaha Miller





PostPosted: Team Foundation Server - Build Automation, Pass in parameter to TeamBuild Top

Unfortunately, this is not possible in v1, but will very likely be in a future release.

Swaha