Re: JobDSL : how to define build env var into a configuration class

2016-11-03 Thread JL 6BerYeti
Great ! Thanks a lot. It works ! But I hardly understand why it is so different than other confiugration such as ws cleaner or logrotator. Using the Job DSL playground, it appears that a little bit simpler code is possible by simply avoiding default config : def properties = project /

Re: JobDSL : how to define build env var into a configuration class

2016-11-02 Thread Victor Martinez
Specific mailing list about Job DSL Plugin: - https://groups.google.com/forum/#!forum/job-dsl-plugin Cheers -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to

Re: JobDSL : how to define build env var into a configuration class

2016-11-02 Thread Victor Martinez
Hi J-L, I've just seen your jobFramework class and I guess you don't need to use the configure closure unless you those plugins are not supported by JobDSL, otherwise it's worth using the DSL syntax, for instance: -

JobDSL : how to define build env var into a configuration class

2016-11-02 Thread JL 6BerYeti
Quite new to Job DSL, I am running some tests and trias. I currently try to factorize some common job configuration part in a library I can reuse within each job. I know how to do that with DSL, but I face out a problem with adding an env var. I have this code which run ok : class jobFramework