Forum Discussion
Bonibom
3 years agoContributor
You can try
1. currentBuild.rawBuild.log (this might be deprecated but let's try)
2. global variable manager using manager.logContains(text) (never tried that )
Anyway, the best way is using Jenkins API methods in your scripts as you may need various methods in the future.
tvklovesu
3 years agoFrequent Contributor
For manager I got the following
[GitHub Checks] GitHub check (name: Jenkins, status: COMPLETED) has been published. hudson.remoting.ProxyException: groovy.lang.MissingPropertyException: No such property: manager for class: WorkflowScript at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:53) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:458)