any suggestions how to proceed with this task On Wednesday, October 26, 2016 at 2:55:22 PM UTC+5:30, raja saggam wrote: > > Hi Jimilian, > > i am trying to get the reason why jenkins jobs failed for example code > changes, build steps etc. > > Regards, > raja > > On Wednesday, October 26, 2016 at 12:59:18 PM UTC+5:30, Jimilian wrote: >> >> Are you trying to implement >> https://github.com/jenkinsci/build-failure-analyzer-plugin? >> >> On Tuesday, 25 October 2016 19:19:11 UTC+2, raja saggam wrote: >>> >>> I have used the below code where i am getting list of failed jobs and >>> also the jobs which are currently inprogress >>> >>> hudsonInstance = hudson.model.Hudson.instance >>> allItems = hudsonInstance.items >>> activeJobs = allItems.findAll{job -> job.isBuildable()} >>> failedRuns = activeJobs.findAll{job -> job.lastBuild.result == >>> hudson.model.Result.FAILURE} >>> failedRuns.each{run -> println(run.name)} >>> >>> >>> how to skip those jobs which are running >>> and the getting the cause of the jobs which are failed >>> >>> On Tuesday, October 25, 2016 at 10:42:00 PM UTC+5:30, raja saggam wrote: >>>> >>>> I looking out to write the groovy script to list the failure jenkins >>>> jobs and there cause for the failure >>>> >>>
-- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/35900bde-6b3a-4906-ac6a-2fcb4736f752%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
