Hi

 

Our Jenkins version is 1.424 which was installed in RedHat Linux server.

I have one query.

 

We are running some script based on build output. Those scripts are 
configured in Post build actions.

If the  build is failed we should trigger failure build script.

 

My query is, my failure script should be run based on string value. 

In my ANT script, I have written “BUILD FAILD” string. Whenever build 
failed, the BUILD FAILD message print at the end of line

 

My expectation is Jenkins should be capture BUILD FAILD string in console 
output and based on that my failure build script should be run.

I have tried with “Log parser” plug-in. But it is not working. Getting 
below error

 

ERROR:Failed to parse console log :

log-parser plugin ERROR: Cannot parse log: Can't read parsing rules

file:Exception in thread "main"

java.lang.reflect.InvocationTarget

 

can anyone please suggest me how we can get this done.

Reply via email to