简体   繁体   中英

How to execute one TFS 2010 build script from other TFS 2010 build script

I am having two separate build script written in TFS 2010. One is for application and other is for wcf service. I need to execute service build script from application's build scripts. Could someone please suggest how could I achieve this. Thanks.

To simply trigger one build after finishing another, you can use the tfsbuild utility that is installed on a system when you install Team Explorer.

You should be able to call it using

<Exec Command="$(VS140COMNTOOLS)\..\IDE\tfsbuild.exe start $(TeaFoundationServerUrl) $(TeamProject) DefinitionName" />

check the additional parameters here in the docs .

A list of useful environment variables available can be found here: http://www.woodwardweb.com/vsts/30_useful_team.html

Do note that the .proj files to orchestarte your builds are ancient (from the 2008 era) and have long since been outdated first by XAML builds and later by the new 2015 Build engine.

Team Foundation Server 2010 itself is no longer supported by Microsoft since June last year.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM