Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy in multiple environment (DEV, UAT, PROD) in Jenkins

Tags:

python

jenkins

I have a Python app , I want to deploy it first in DEV, then in UAT and finally on PROD. I could build it using Jenkins with Webhooks so that when It's pushed to DEV it triggers a build(It runs the nosetests suit). I want this app to be promoted in UAT and PROD subsequently if build in DEV and UAT passes respectively. I don't want any manual intervention. Can it be done with Jenkins and how? If not what could be the best alternative??

P.S I thought of doing remote login on my DEV, UAT, PROD servers from my Jenkins server. and triggering the build but I am still unclear how to do it?

like image 947
Ishan Bhatt Avatar asked Jun 13 '16 13:06

Ishan Bhatt


People also ask

How does Jenkins Deploy code to multiple servers?

You can deploy to multiple servers using the Node and Label parameter plugin. Add the servers you want to deploy your code using Jenkins nodes: Manage Jenkins > Manage nodes > New node. Be sure to add a label to each node so you can group them together and deploy to that group.

Does Jenkins do continuous deployment?

Jenkins provides good support for providing continuous deployment and delivery. If you look at the flow of any software development through deployment, it will be as shown below. The main part of Continuous deployment is to ensure that the entire process which is shown above is automated.

Is automatic deployment possible in Jenkins?

Jenkins is really popular for CI (build automation), as well as for general purpose automation. As such, it seems a natural fit to use Jenkins's automation capabilities to deploy the software you built.


1 Answers

Best practice would be to use Jenkins pipeline. You could necessitate progression between your environments by using input step and have your (I presume) asynchronous deployment trigger the continuation of the pipeline to the next stage (environment)

like image 58
Zoran Regvart Avatar answered Oct 23 '22 07:10

Zoran Regvart