Tag:项目部署jenkins
Article From:https://segmentfault.com/q/1010000012140017
Question:

What is the way I use Jenkins to pack the projects under different environments, the difference lies in the different configuration files, the establishment of multiple tasks, and the different tasks in different environments? stillReplace the configuration file with the script when packing? Or what’s the plug-in?

Answer 0:

I’m packaged in ant, Jenkins is built with parameterized construction, and &amp is used in the ant script; {env.param} gets the parameters, as the value of the exclude tag in the script, and you can exclude any other unnecessary configuration

Leave a Reply

Your email address will not be published. Required fields are marked *