Short:
How can I get colors for MSBuild running from Jenkins.
Long:
I have a nice Python build script that uses the pyColors module to print pretty output to console. When I'm running the script from CMD, I get colors from my script and colors from MSBuild (Ex: Blue color for "Done Building Project", Green for "Build succeeded", Red for errors).
I also run the same script from Jenkins (on Windows, of course). At the begging I got no colors in the Jenkins log (Console output). I then, installed the ANSIColor plugin, and now I only get the colors generated by the Python script, but no colors from MSBuild.
I tried to investigate it from the MSBuild project on GitHub, and I found that MSBuild has some safety try/ctach check on setting colors, that is probably failing (BaseConsoleLogger.cs line 455). I think that the Python module is simply printing raw ANSI escape characters, while the Win32 API for setting colors is failing when the console output is redirected.
P.S.
I'm using fully updated Jenkins on Windows 8 with Visual Studio 2015 SP1