简体   繁体   中英

Queuing TFS Build from Powershell Script Which is Called from TFS Build

I have a build definition that I use where when I kick it off, it calls a Powershell Script which actually queues multiple builds. The code I use came from this web page as reference: How to queue build from powershell script

This script runs fine and works if I call it from the ISE or from the Powershell console. But if I call it from the build, it doesn't work. Any ideas why this may happen?

The simplest way is to use tfsbuild.exe command line utility. Open a "Developer Command Prompt" and type TFSBuild help start .

You can also use a script using the right APIs (eg How to queue another TFS (2012) Build from a TFS Build AND pass process parameters? ).

Third option is to customized the build template with the Community Build Extensions .

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