If you had access to the Jenkins server you could copy the files locally via scp or similar and run your script. You could also configure your job to save them somewhere in the file system with a date stamp in the name to allow you to search historically results.
You could also set up a downstream job that gets triggered on completion and checks the logs for errors, which could be configured to notify you via slack/email etc if there were any issues. On Sun, Aug 11, 2019 at 3:55 PM Tony C <cappy2...@gmail.com> wrote: > Hi, > > I've been using Jenkins at work, for just over a year. I"m not the main > architect of our groovy infrastructure. I'm just a user > who has several jobs which run each night. > > Each of those jobs saves a handful of artifacts (log files) from that job. > > I usually go into each job and look at a specific file (common to each > job), for specific text that would indicate the job had a problem. > Since there are so many jobs being run, this takes quite a bit of time. > Every day. > > I would like to be able to search all of the jobs which ran on a certain > date and scan the artifacts for specific text. > I would probably do this outside of Jenkins, by writing a script to scan > the artifact files. > > However, I don't know how to gain access to those jobs programmatically, > let alone scanning the artifacts of each of those jobs. > > I've used the Python-Jenkins library > https://python-jenkins.readthedocs.io/en/latest/ > > but it doesn't have the ability to do what I want- scanning the artifacts > of several builds (or a specific build). > > Thanks > > -- > 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/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/97a539f0-1e12-4796-9692-23c662cbb340%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAA6n2-5iFmvfa%3D6s9v43_tQxSwMy6Gv2RuUOZn96%3DR67%2B279xQ%40mail.gmail.com.