Using the Groovy Postbuild Plugin in Jenkins Environment that utilizes Folders
CloudBees Jenkins Enterprise
When jobs are arranged using folders they are accessible via Groovy Postbuild scripts as shown in the examples below.
Accessing a specific job that is located in folder_name/folder_name/folder_name.
job1 = hudson.model.Hudson.instance.getItem("folder\_name").getItem("folder\_name").getItem("folder\_name")
Searching for an item inside of a folder.
The following link has more information about the methods that are available to use: http://javadoc.jenkins-ci.org/jenkins/model/Jenkins.html