Questions tagged [workflowscript]

2 questions
0
votes
1 answer

Accessing Jenkins pipeline WorkflowScript during execution

I would like to know if there is a way to access the Jenkins Workflow script object during its execution. I have a shared library, and I can pass this object to any groovy class as an argument, either directly from the Jenkins file, using 'this'…
Milan
  • 1,547
  • 1
  • 24
  • 47
0
votes
1 answer

Jenkins groovy (SharedLibrary) class can't access WorkflowScript members

I have a simple pipeline script that access a groovy class (which resides in a shared library), the pipeline script pass a reference (to itself) to the class, the class then calls a function or a closure found in the script, that function access a…
Shaybc
  • 2,628
  • 29
  • 43