title: How to specify Jenkins deployment config per deployment target
body: <p>I'm new to Java and Jenkins but have a strong C# MVC, TFSBuild, and Octopus Deploy background. 
  In Octopus Deploy it is possible to read the MVC Web.Config XML file and replace database connection strings - this makes it easy to take a built artefact and promote to a different internal VM environment. I want to achieve the same net effect with Java and Jenkins.</p>
  
  <p>Am I correct in thinking that Java connection strings for databases could/should be set in environment variables per VM environment?
  Is there a Jenkins plugin that can achieve this for me or will I need to write a PowerShell script?</p>
  
  <p>I have found several links such as <a href="https://docs.run.pivotal.io/marketplace/integrations/cloudbees/jenkins-cloudbees-using.html" rel="nofollow">CloudBees</a> but they all seem to be spefic to cloud providers; I just want to target internal Virtual Machines.</p>
  
  <p>Using SpringBatch, Maven, DB connection to Oracle. </p>