简体   繁体   中英

Continuous Deployment using Jenkins and Opswork integration

I am trying to setup Continuous deployment using jenkins and OpsWorks. I have configured Jenkins but I dont know how to integrate Jenkins with OpsWorks to auto deploy using Chef Cookbook. Is there any plugin available for OpsWorks and Jenkins integration?(I think there is no plugin available from AWS. I dont know why....).

Can I have some steps/suggestoins to write chef cookbook to integrate OpsWorks with Jenkins?

I do this by calling the CLI tool in a Jenkins project. Something like this:

aws opsworks --region us-east-1 create-deployment --stack-id <your id> --app-id <your app id> --command "{\"Name\":\"deploy\"}"

You can find the IDs in your stack configuration.

如果您想进行连续部署,则可以使用AWS CodeDeploy代替Jenkins。

You can now integrate OpsWorks into a CodePipeline: https://aws.amazon.com/about-aws/whats-new/2016/06/aws-codepipeline-adds-integration-with-aws-opsworks/

This lets you automate the release of updated application code and Chef cookbooks to your applications and instances running in OpsWorks.

This allows you to implement CD into your OpsWorks stack, with or without Jenkins.

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