Cannot access variable "manager" in Jenkins

I am trying to run a Groovy script as a post build action. Unfortunately I cannot use the variable manager

. The following code:

import jenkins.*
import jenkins.model.*
import hudson.*
import hudson.model.*
def failedSummary = manager.createSummary('error.gif')

      

raises this error:

groovy.lang.MissingPropertyException: No such property: manager for class: Script1

Please, help.

+3
jenkins groovy


source to share


No one has answered this question yet

Check out similar questions:

709
How to restart Jenkins manually?
448
Error - the trustAnchors parameter must be non-empty
31
Accessing build environment variables from groovy script during Jenkins build phase (Windows)
18
How can I set variables in a multi-line shell script inside Jenkins Groovy?
eleven
groovy.lang.MissingPropertyException: No such property: manager for class: Script1
6
How to get list of jenkins launches using groovy script?
3
Jenkins Environment Variables in Groovy Init
0
Jenkins build Groovy Errors exist. Unable to load hudson.model.Hudson class due to missing dependency
0
How can I access jenkins build environment variables from Groovy scripts
0
How To Fix - Jenkins Post Build Action Groovy Script Cannot Evaluate



All Articles
Loading...
X
Show
Funny
Dev
Pics