简体   繁体   中英

Deploy webapp to AWS Elastic Beanstalk using Jenkins Pipeline

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

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM