I have been trying to setup a single build job that will accept a parameter to build for different environments ie Dev, Prod etc. Obviously I also want these to deploy to different servers.
I can see how to use GIT to check out a different branch using parameters but how then do I send these parameters in the names of servers to publish over ssh, publish over ftp, publish over cifs etc? We have server names similar to
dev.mycompany.com and
prod.mycompany.com and I would like to send these to $
ENV.mycompany.com.
The problem I have run into is that if I build a different Jenkins jobs for our Dev and Prod servers, occasionally changes to the jobs do not get replicated to every other one.