Jenkins Groovy script: List all jobs

Overview

To list all available jobs in the Jenkins server, navigate to Manage Jenkins -> Script Console and paste the following content. Then click run button.

println Jenkins.instance.projects.collect { it.name }