vendredi 31 juillet 2015

Jenkins Log Parser rule to exclude text between two strings

I'm using Jenkins log parser plugin to parse the console for errors. I'm trying to create a rule to OK a block of text between two strings without raising any flag.

I know ok /abc.*xyz/ rule works for single line.How do I extend this to a block of text or multiple lines like:
For example:

abc
... ...
... ...
... ...
xyz
Note: "xyz" is the first string that's matched after "abc"

I tried ok /abc(?s)(.*?)xyz/ but was unable to make it work.

Can anyone help me here?

Aucun commentaire:

Enregistrer un commentaire