My Jenkins task searches the console output to see if the build is stable. It searches this java pattern: exception|error|warning|Segmentation
I have a compile parameter that has -Werror=format-security in it, so Jenkins should not match it.
I try this [exception|error|warning|Segmentation][^Werror] but it still finds Werror in the text. How can I make it so it doesn't think my build is unstable because of compile parameter?
^(?!.*Werror).*(?:exception|error|warning|Segmentation)find()finds a partial match in the second string).^anchor,(?!...)negative lookahead, greedy matching and(?:...|...)non-capturing alternation groups.