You might try starting your own thread, instead of hijacking mine by 
changing the title.
(Mine was about running 2 mvn cmds for 1 job.)

Bill

On Thursday, July 19, 2012 6:25:48 PM UTC-7, Kamal Ahmed wrote:
>
> 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.
>

Reply via email to