Hello

Id like to know how i can parse the console output of a build from another
job through groovy script please?

Not a postbuild one but build groovy script.

trying something like that
-------

import hudson.model.\*import hudson.\*

wantedJobs = hudson.model.Hudson.instance.items.findAll{ job->
job.name.startsWith("MyINTEGRATION_TEST")== true && job.lastBuild \!=
null }for (run in wantedJobs ){
log=run.getLogText().toString()
nb_matcher =log.contains("number of failure
\:(.*)/");if(nb_matcher?.matches()) {
foo=nb_matcher.group(1)
}
}



-- 
Karim Har

-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to