Jenkins TransientBuildActionFactory class how to use?

I come across a question while writing a jenkins plugin. I want to use the TransientBuildActionFactory to add my plugin action to the job build, but I cannot find any demo code for using this class. Can anyone show me an example on how to use it?

I am researching TransientBuildActionFactory information from this: jenkins wiki about it

More recently, we are introducing the Transient *** ActionFactory series, such as the TransientViewActionFactory, so that transient actions can be introduced without implementing another extension point such as the Builder. We hope to add such extension points for more host types.

thank

+3


source to share


1 answer


TransientBuildActionFactory

deprecated as stated in the javadoc . It is replaced by TransientActionFactory

.



An example can be found at JobConfigHistoryActionFactory.java

+1


source