Home > database >  Deploy webapp to AWS Elastic Beanstalk using Jenkins Pipeline
Deploy webapp to AWS Elastic Beanstalk using Jenkins Pipeline

Time:12-04

I've manually deployed my web application to AWS EBS. We use to normally have a jenkins pipeline which deployed the app to tomcat server running on AWS using mvn tomcat8:redeploy-only -Ddeploy.address=xx.xx.xx.xx:port

How do you deploy to AWS EBS with Jenkins, at the moment I'm having to upload the war file each time we have an update.

Any help is much appreciated.

Thanks

CodePudding user response:

I haven't tried, but there is a Jenkins plugin for Elastic Beanstalk.

Alternatively, you could install elb cli in your Jenkins nodes to manage your environments.

CodePudding user response:

I used AWS Beanstalk publisher jenkins plugin which allowed me to set up post-build actions which was the answer. You need to specify S3 bucket in the settings of where your app will be deployed to and set up version labelling. Thanks for kgiannakakis for referring this to me.

A good video I used can be found here: deploy war file to aws ebs

  • Related