I'm trying to run a Groovy script as a post-build action. Unfortunately, I cannot use the manager
variable. The following code:
import jenkins.*
import jenkins.model.*
import hudson.*
import hudson.model.*
def failedSummary = manager.createSummary('error.gif')
produces this error:
groovy.lang.MissingPropertyException: No such property: manager for class: Script1
Please help.