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;
  }

1 comment: