MicrosoftPremier / VstsExtensions

Documentation and issue tracking for Microsoft Premier Services Visual Studio Team Services Extensions
MIT License
56 stars 14 forks source link

Zero Warning every time #62

Closed raphaelmoreira closed 4 years ago

raphaelmoreira commented 4 years ago

Morning.

I have a simple app to test how the warning works. So, I did basic configurations on at (default for everything).

My App has 9 Warning like above:

image

My Pipeline has this step

When I run the build, I received this:

Task : Build Quality Checks Description : Breaks a build based on quality metrics like number of warnings or code coverage. Version : 6.1.2 Author : Microsoft Premier Services Help : [Docs]

SystemVssConnection exists true Validating build warnings policy... The specified task filters did not match any build task. Found baseline build with ID 25975. Counting warnings from tasks:

I try to change code, raise the warning, but nothing change; I try to use regex to catch some type of warning. Nothing happens.

What kind of warning this task fetch? Someone can help me? Thank you.

ReneSchumacher commented 4 years ago

Hi @raphaelmoreira,

the issue is caused by our default task filter value that does not properly match all default tasks when used in YAML pipelines. As a quick workaround you can use the following value:

/^((vs|ms)build|ant(\\s+.+)?|gradle(w)?(\s+.+)?|grunt|gulp|maven(\s+.+)?|xamarin(android|ios)|xcode(\s+.+)?|cmake|build\s+.+)$/i

I have already fixed the default value in our task so the issue should be gone with the next update. If all goes well, the fixed version will be available today.

René

raphaelmoreira commented 4 years ago

It works! Thank you for the assistance =)