Suresh,
I added the Groovy plugin and included a Groovy script as a part of the 
Build Post Steps.
The groovy script goes through the console output and checks if a 
particular string is present.

Example of the script:

import jenkins.model.*
JOB_NAME = "Maven Demo"
CHECK_STRING = "IllegalArgumentException"

def job = Jenkins.instance.items.find { it.name == JOB_NAME }
def currentBuild = Thread.currentThread().executable
  def log = currentBuild.log
  if (log.contains(CHECK_STRING)) {
    println "${job.name}:"
    println currentBuild
  }

Right now this script just prints the job name and current build name to 
the console.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/732bd03a-bf40-45ce-a08a-4c5ecdd0f2ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to