-
Bug
-
Resolution: Not A Defect
-
Blocker
Hi Everyone!
I have been working on creating a jenkins shared library, and it works perfectly for a generalized pipeline template. Recently I had the need to pass an extra user-defined stage to my generalized pipeline. I am using closure to do so, but facing some issues with it.
I would like for the closure to return a declarative stage which has its own agent, steps and other components as shown in the code samples below (refer the following images) :
Closure defined in .jenkinsfile | Call to closure from jenkins shared library | Error Message :
Please let me know how can I achieve the above functionality.