Can I customize a "message highlighting template" for the TFS2015.2 build command line stage?

Can I customize Error message highlight pattern and Warning message highlight pattern in TFS2015.2 Command Line ?

For example, I might have the following assembly definition that launches a command-line utility, such as gulp , to perform some tasks, such as listing code.

Assembly definition example showing command line step

The exact standard output (via stdout ) of this utility will vary depending on the exact lint tasks performed. For example, one TypeScript code analysis tool and another Sass code analysis tool.

In addition, the utility can:

  • Writing messages to the error stream (via stderr ).
  • Returns an unnecessary exit code.

None of the above cases suits me, because in some scenarios I do not want TFS to consider the build step to fail. However, I want warnings to appear in logs and summaries.

It would be useful to learn the Command Line step about specific output message templates that represent warnings and errors.

In the build logs for the Command Line step, I see the following:

Assembly log output showing a message highlighting pattern

This is similar to a way to configure output string matching patterns that present warnings and errors. However, I can not find a way to configure them, so my question is.

I must point out that I know that there are other ways to achieve this:

  • One of the ways, for example, is the target build step, which is designed to transfer the command line utility. For example, the gulp and npm built-in steps, or perhaps a custom step / extension.

  • Another way is to fix the Logging Commands from the build script as given here .

My question is specifically related to using the built-in common Command Line step directly when these options are not available or desirable.

+5
source share
1 answer

So far this cannot be achieved at the command line stage directly. You can request a function request in uservoice. The TFS administrator and PM will be kindly reviewed.

UserVoice: https://visualstudio.uservoice.com/forums/330519-team-services/

+2
source

All Articles