简体   繁体   English

使用 Jenkins 管道将 webapp 部署到 AWS Elastic Beanstalk

[英]Deploy webapp to AWS Elastic Beanstalk using Jenkins Pipeline

I've manually deployed my web application to AWS EBS.我已将我的 web 应用程序手动部署到 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我们过去通常有一个 jenkins 管道,该管道使用 mvn tomcat8:redeploy-only -Ddeploy.address=xx.xx.xx.xx:port 将应用程序部署到在 AWS 上运行的 tomcat 服务器

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.您如何使用 Jenkins 部署到 AWS EBS,目前我每次有更新时都必须上传 war 文件。

Any help is much appreciated.任何帮助深表感谢。

Thanks谢谢

I haven't tried, but there is a Jenkins plugin for Elastic Beanstalk .我没有尝试过,但有一个 Jenkins 插件用于Elastic Beanstalk

Alternatively, you could install elb cli in your Jenkins nodes to manage your environments.或者,您可以在 Jenkins 节点中安装elb cli来管理您的环境。

I used AWS Beanstalk publisher jenkins plugin which allowed me to set up post-build actions which was the answer.我使用了 AWS Beanstalk 发布者 jenkins 插件,它允许我设置构建后操作,这就是答案。 You need to specify S3 bucket in the settings of where your app will be deployed to and set up version labelling.您需要在应用程序部署位置的设置中指定 S3 存储桶并设置版本标签。 Thanks for kgiannakakis for referring this to me.感谢 kgiannakakis 把这个介绍给我。

A good video I used can be found here: deploy war file to aws ebs可以在这里找到我使用的一个很好的视频: deploy war file to aws ebs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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