I have a Jenkins job with 100+ builds. I need to search through all the builds of that job to find builds that have a certain string in the console output. Is there any plugin for that? How do I do that?
Jenkins – Search through console output of a Jenkins job
console-outputJenkinsjenkins-plugins
Related Topic
- Jenkins – How to stop an unstoppable zombie job on Jenkins without restarting the server
- Jenkins – Changing Jenkins build number
- Git – How to clone a job in Jenkins
- Jenkins – Echo off in Jenkins Console Output
- Jenkins – How to trigger another job from a jenkins pipeline (jenkinsfile) with GitHub Org Plugin
- Jenkins – How to download build output files from jenkins UI console itself
- C# – Jenkins REST API to get job and job console log
Best Answer
I often use the Jenkins Script Console for tasks like this. The Groovy plugin provides the Script Console, but if you're going to use the Script Console for periodic maintenance, you'll also want the Scriptler plugin which allows you to manage the scripts that you run.
From Manage Jenkins -> Script Console, you can write a groovy script that iterates through the job's builds looking for the matching string: