AWS CodeDeploy Jenkins plugin now available including on DEV@cloud

Recently Amazon announced their CodeDeploy tool.

CodeDeploy aims to be the “Amazon native” way to do continuous deployment to your fleet of EC2 servers, and more - and of course there is a Jenkins plugin for it!

With the Jenkins plugin, you can use CodeDeploy as a post-build action, perhaps at the end of a continuous delivery pipeline - and let Amazon take care of rolling out your binary (usually a zip file) to your fleet of servers.

 

 

CodeDeploy supports zero downtime updates via rolling out changes to the cluster in a controlled fashion, using configurable status checks to know when a given instance is ready, and it can move on to other instances during a roll out.

There is a lot more to CodeDeploy - but if you deploy to Amazon EC2, it is worth looking at at the endpoint of your Continuous Delivery pipeline with Jenkins.

This plugin is available in the Jenkins update center (both for DEV@cloud users and if you run your own Jenkins instance).  Once the plugin is installed:

 

 

 

 

  • Open up your project configuration:
    • In the Post-build Actions section, select “Deploy and application to AWS CodeDeploy”
    • Application Name, Deployment Group, Deployment Config, and region are all required options.
    • For authentication, there are two options. Either option requires that the associated role has, at minimum, a policy that permits codedeploy:* and s3:Put*.
      • Access/Secret key pair. For example, the keys associated with a specific IAM user. If left blank, the default chain of credentials will be checked.
      • Temporary access keys. These will use the global keys from the Jenkins instance.

 

 

 

 
 
 

 

Read more details about CodeDeploy here.

CodeDeploy works, likely, with your existing scripts and tools - there are more docs about it here, and there are even starter samples.

 

 

Blog Categories: 

Comments

Getting error for "application not found" when using plugin. Cannot find application named 'cit-zteusa-deploy' java.lang.IllegalArgumentException: Cannot find application named 'cit-zteusa-deploy' at com.amazonaws.codedeploy.AWSCodeDeployPublisher.verifyCodeDeployApplication(AWSCodeDeployPublisher.java:268) at com.amazonaws.codedeploy.AWSCodeDeployPublisher.perform(AWSCodeDeployPublisher.java:215) at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:726) at hudson.model.Build$BuildExecution.post2(Build.java:185) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:671) at hudson.model.Run.execute(Run.java:1766) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:408) Build step 'Deploy an application to AWS CodeDeploy' marked build as failure Finished: FAILURE

Abinov - best to open a support ticket for things like that (looks like an error to do with an app needing to be pre-created), vs a comment on the blog.

Add new comment