Replies: 1 comment
-
I have realised that I am missing the trailing
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'm having some difficulties with the
warningTaskSelectors
option.Everything works fine when I add the BQC to my pipeline, but I there are some Tasks on it which I don't want included in the analysis because those tasks are conditional and only run on the
main
branch - meaning the baselinemain
warnings count is naturally inflated compared to a PR branch pipeline.To account for this I am trying to limit which Tasks in my pipeline using the
warningTaskSelectors
option.I tried something simple like
warningTaskSelectors: '/^(Build|Restore)$'
to match either of the two steps I want to monitor. However, this gave me the following output:I looked back at the docs and saw this regex documented, presumably as the default,
'/^((vs|ms)build|ant(\s+.+)?|gradle(w)?(\s+.+)?|grunt|gulp|maven(\s+.+)?|xamarin(android|ios)|xcode(\s+.+)?|cmake|build\s+.+)$/i'
so I tried setting that value explicitly in my yaml. This gave me the output:In summary, my questions are:
/^(Build|Restore)$
or how can I filter by a simple Task name?warningTaskSelectors
in my pipeline (and therefore what is the one in the docs?)My pipeline BQC task in full:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions