-
New Feature
-
Resolution: Unresolved
-
Minor
Hi,
Would it be possible to have an extension point, through a dedicated ExtensibleContext, which allows to add some code at the root of a DSL, at the same level than job and co?
The use case is as follows: among activities we want to achieve when generating the jobs of a pipeline, we want to perform other tasks, like creating branches in Ontrack or initialising some repositories in Artifactory.
The current way we do it is to generate a setup job which is queued automatically at the end of the pipeline generation, but that's a bit heavy.
It would be neat if we could call some plugin's code, through an extension or directly.
damien_coraboeuf do you still need this? Do you need this for the seed plugin? I assume that you are using DslScriptLoader directly instead of the build step. With PR #984 I'm going to allow custom subclasses of JobParent to be used in DslScriptLoader. So you can use your own JobParent with additional top-level methods. Would that help here?