Declarative Pipeline - Pipeline Shared Library

173 views
Skip to first unread message

Daniel

unread,
Jan 12, 2017, 4:07:13 PM1/12/17
to Jenkins Users
Hi together, 

as similar question has already been asked regarding stages, but this and is about the full pipeline definition.

Is it possible or planned to be able to define a full Declarative Pipeline in a Pipeline Shared Library?

I am asking because we have a lot of customer projects that in their Jenkins File call just one function of a Pipeline Shared Library which handles the full build.
This really convenient and I am afraid that I would loose this kind of comfort.

Regards,
Daniel

ctrlengi...@gmail.com

unread,
May 15, 2017, 9:51:13 AM5/15/17
to Jenkins Users
I am really looking for this feature too. so far my efforts have failed...

Daniel

unread,
May 15, 2017, 10:47:03 AM5/15/17
to Jenkins Users
As far as I know, the chances are low that this will be implemented any time soon, for various (including technical) reasons.

At FOSDEM I talked to Andrew Bayer, the author of declarative pipeline about this, and the conclusion was that you don't have to use declarative pipeline.
Use it when it fits for you, otherwise use the scripted pipeline. Therefore I continue to use the scripted pipeline.
Reply all
Reply to author
Forward
0 new messages