perl - Jenkins job log monitoring, parsing with error pattern in master -


i working on perl script following:

  1. trigger script in post build action when job fails.
  2. read log file , try match errors consolidated error/solution file.
  3. if error matched pattern file, concatenate error message solution @ end of log file.

i facing following challenges:

  1. all jobs running in slave error log file stored in master. how can run script in post-build action? script path taken slave script located in master. there workaround this?
  2. the path of error log - /home/jenkins/data/jobs//builds/build_number/log have many jobs have folders created jenkins folder plugins…how set common folder these? /home/jenkins/data/jobs/folderx//builds/build_number/log

other questions -

do think publishing jenkins error log , displaying solution right approach?

there no information on how complex pattern maching is, if simple line based regex match there plugin that, called build failure analyzer.


Comments