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.

https://github.com/jenkinsci/git-plugin/blob/master/src/test/java/hudson/plugins/git/GitStepTest.java

Mark Waite 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/0d9c4aa8-63ac-4b50-b6ad-f3d423b2b144n%40googlegroups.com.

Reply via email to