Just check the javadocs, you can use pretty much everything from there. Sent from my Windows Phone ------------------------------ From: Kamal Ahmed Sent: 7/20/2012 9:25 AM To: jenkinsci-users@googlegroups.com Subject: groovy script error No such property: manager for class
Hi, Is there a working example of groovy script for jenkins that i can use, so i know what methods are available for use I used: def matcher = manager.getLogMatcher(".*Total time: (.*)\$")if(matcher?.matches()) { manager.addShortText(matcher.group(1), "grey", "white", "0px", "white") } in the Groovy Command text box, and got the following error: Started by user anonymous <http://10.88.29.159:8080/user/null> Building in workspace /var/lib/jenkins/jobs/CM-MOCK-TEST1/workspace [workspace] $ groovy /var/lib/jenkins/jobs/CM-MOCK-TEST1/workspace/hudson1529437829169554915.groovy Caught: groovy.lang.MissingPropertyException: No such property: manager for class: hudson1529437829169554915 at hudson1529437829169554915.run(hudson1529437829169554915.groovy:1) Build step 'Execute Groovy script' marked build as failure Notifying upstream projects of job completion Finished: FAILURE Thanks, -Kamal.