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 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.

Reply via email to