Hi, The Log Parser plugin is used to highlight the console log, i.e. highlight failure sections etc. this requires that some global configuration is done see section "Console Output Parsing" in the amin Jekins configuration page. See https://wiki.jenkins-ci.org/display/JENKINS/Log+Parser+Plugin for details.
If you are looking to run a script based on a a string in the log, you might consider the flexiable publish plugin and run-condition plugin, which will alloy you to perform different actions for different cases if needs be. not sure if there is a condition to check the files or the console log yet. https://wiki.jenkins-ci.org/display/JENKINS/Flexible+Publish+Plugin https://wiki.jenkins-ci.org/display/JENKINS/Run+Condition+Plugin Chris On Tuesday, June 26, 2012 7:42:05 AM UTC+1, Suri wrote: > > 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. >