jenkins-client-java icon indicating copy to clipboard operation
jenkins-client-java copied to clipboard

How to generate config.xml for creating jobs

Open csxiaoshang opened this issue 6 years ago • 5 comments

I didn't find a tool for generating the config.xml to create job.

csxiaoshang avatar Aug 22 '19 07:08 csxiaoshang

It's not easy to do that.

LinuxSuRen avatar Aug 22 '19 07:08 LinuxSuRen

In my project, I need to programmatically generate config.xml to create job according to different requirements。Do you have a good idea?

csxiaoshang avatar Aug 22 '19 08:08 csxiaoshang

You can try to use a template instead of an XML file.

LinuxSuRen avatar Aug 22 '19 08:08 LinuxSuRen

Another solution is that using jcli to create a job.

LinuxSuRen avatar Aug 22 '19 08:08 LinuxSuRen

Thanks!i will try it

csxiaoshang avatar Aug 22 '19 08:08 csxiaoshang