I am not saying this is your issue, but you have a minor bug . . . a missing 
“.” After the second S in SUCCESS:

^.*POST.*BUILD.*TASK.*SUCCESS.*$

Because of the missing “.” . . . if there was any white space after SUCCESS the 
rexexp would fail.

Might be your problem . . . might not.

Frank

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of zw
Sent: Friday, January 04, 2013 9:26 AM
To: jenkinsci-users@googlegroups.com
Subject: Post Build Task matching - quick question

Hi

We have a plugin to perform task post build. We have 2 post tasks
We tried to match this string below, belonging to the first post task run

POST BUILD TASK : SUCCESS



On our second post task, we tried to match it, as a condition, to

^.*POST.*BUILD.*TASK.*SUCCESS*$



But we're getting

Could not match :^.*POST.*BUILD.*TASK.*SUCCESS*$  : False



and so it skipped our shell script execution.



How can we fix this regex ?



Thanks you all.




Reply via email to