See 
https://github.com/cloudbees/jenkins-scripts/blob/master/findStaleFolders.groovy
 if you make it from a pipeline you would need to approve a bunch of methods in 
the script approval, also you probably need to use the @NonCPS see 
https://wiki.jenkins.io/plugins/servlet/mobile?contentId=175211277#content/view/175211277

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/da560238-c58e-4c5f-8fb5-1abb263c41af%40googlegroups.com.

Reply via email to