Seems that the issue is with the construction of the
in the jobDsl contect, the class is initiated and a call is made to
which, in turn, runs
Problem is, in this context, the root dir, is now the NEW job, not the old one, so, the class isn't initiated properly and thus, later, the List of
is left empty.
I think, that also, part of the problem, is that in no entry point between the jobDsl plugin code, to the promotion one, I have see any reference that passes the name of the template job, which makes it impossibly to load it from the right context.
Solution would be either:
(or anywhere else before so, like, in the initialisation if the
- Change the Promotion plugin to NOT use subfolders and have all the context in the original XML of the job