PDA

View Full Version : Real-time log output to Microsoft TFS/Azure DevOps builds


LrngToFly
11-14-2019, 01:58 PM
Hi-

I have a legacy product that uses a lengthy Visual Build script. I am wanting to call this build script from a Microsoft TFS (now called Azure DevOps) build process. The TFS site won't display the output from calling visbuildcmd.exe /b <build script> /loglevel 3 until the entire script has completed- roughly a one hour long build.

I have tried calling visbuildcmd.exe from a .bat file, a .ps1 file and a "Command Line" "task" in my TFS build definition. All have the same issue.

Might anyone know of a trick that might let me view realtime log output from Visual Build?

Thanks!

kinook
11-14-2019, 05:19 PM
VisBuildCmd.exe writes to the console as the build progresses -- apparently Azure DevOps doesn't display a program's output until it completes? You could enable file logging in Visual Build -- is there a way to make DevOps not wait for the program to complete and then display the log file content as it gets appended?

LrngToFly
11-18-2019, 11:42 AM
Turns out I didn't have the correct account specified for my TFS build service. Once I switched to an account with interactive privileges, the logging began to appear in real-time. Thanks for your help!