Monday, March 18, 2019

Script to identify list of freestyle jobs in Jenkins - How to identify freestyle jobs in Jenkins

How to identify list of freestyle jobs in Jenkins?

You can run the below script to identify list of freestyle jobs in Jenkins.

You need to go to Manage Jenkins--> Script console and paste the below script. This will give you a list of freestyle jobs.
Jenkins.instance.getAllItems(AbstractProject.class).each {it ->
    println it.fullName;
  }

3 comments:

  1. This script is very handy for quickly identifying freestyle jobs. I’ve had to scan through dozens of jobs manually before, and this approach saves so much time. It’s little tricks like this that make working with jenkins a lot smoother.

    ReplyDelete