>>If you had access to the Jenkins server you could copy t I do have access to the server
I'd write a script to go parse the artifact logs, if I only knew where they were. I don't know if that requires root access or not, I dont have root access. On Monday, August 12, 2019 at 9:23:56 PM UTC-7, Matthew Perrett wrote: > > 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 <[email protected] <javascript:>> > 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 [email protected] <javascript:>. >> 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/beec7ce8-ef23-42fc-9893-26d8036ed7f8%40googlegroups.com.
