Create/run declarative pipeline from a plugin

27 views
Skip to first unread message

Réda Housni Alaoui

unread,
Aug 17, 2024, 10:27:12 AM8/17/24
to Jenkins Developers
Hello all,

Is it possible to create then run a declarative pipeline from a Jenkins plugin using java?

Mark Waite

unread,
Aug 17, 2024, 11:15:07 PM8/17/24
to Jenkins Developers
On Saturday, August 17, 2024 at 8:27:12 AM UTC-6 Réda Housni Alaoui wrote:
Hello all,

Is it possible to create then run a declarative pipeline from a Jenkins plugin using java?

Yes,  automated tests do it frequently.  The git plugin includes tests that define and run scripted Pipeline jobs as part of its tests.  Other plugins as well.  Declarative Pipeline creation will need the plugin to depend on the declarative Pipeline plugins, but that should be enough.


Mark Waite 
Reply all
Reply to author
Forward
0 new messages