What could be the best way to update a DSL script generating a lot of job by scripting ?

14 views
Skip to first unread message

Jean-Luc Pinardon

unread,
Oct 7, 2016, 11:58:25 AM10/7/16
to job-dsl-plugin


Dear All,

I am quite new to DSL, and not a java / groovy / gradle ...etc... guru.
I have recently read documentation and successfully create a mockup simple build chain using a seed job running a DSL script I have coded. Including the use of reusable block in a configure statement.
Now, I know that I will have to update a real world DSL script that creates a lot of job. For each job (probably a selection of jobs based on a regexp) generated within this script I will have to add a publisher block. I think that I will use a def block and insert this block using configure.

My concerns is how to parse and update a complex DSL script with a script. I wonder if there could be a library which could help for that, or if I need to parse it "manually" by searching some keywords of interest and add the configure line.

Thanks for your help.

Best Regards
J.L.P.
Reply all
Reply to author
Forward
0 new messages