Jenkins auto deploy

beardog1113
beardog1113 used Ask the Experts™
on
Dear All
        i use Jenkins+maven+tomcat+SVN for my work. i have Development environment and production environment. the configure is different between this 2 environment. for example, in Development environment, the database connect to 192.168.1.1, in the production environment, the database connect to 192.168.1.2. it will be configured use db.properties in the program code. my question is , how can i set this configuration when i building it in jenkins?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
You can use EnvInject plug-in for jenkins.

Inject environment variable after post-checkout or prior to build.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial