Skip to content
Jenkins plugin for AWS CodeDeploy
Java HTML
Branch: master
Clone or download

Latest commit

Latest commit 6b74409 Jan 24, 2018

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src Add Github deploy Jan 4, 2018
.gitignore
Jenkinsfile Add basic Jenkinsfile to enable builds in ci.jenkins-ci.org. Dec 19, 2017
LICENSE Initial release of Jenkins plugin for AWS CodeDeploy Nov 12, 2014
README.md Merge pull request #72 from DDRBoxman/workflow Dec 20, 2017
pom.xml

README.md

AWS CodeDeploy Jenkins Plugin

The AWS CodeDeploy Jenkins plugin provides a post-build step for your Jenkins project. Upon a successful build, it will zip the workspace, upload to S3, and start a new deployment. Optionally, you can set it to wait for the deployment to finish, making the final success contingent on the success of the deployment.

Build Status

Build Status

Setting up

After building and installing the plugin, some simple configuration is needed for your project.

Freestyle

  1. Open up your project configuration
  2. In the Post-build Actions section, select "Deploy an application to AWS CodeDeploy"
  3. Application Name, Deployment Group, Deployment Config, and region are all required options.
  4. For authentication, there are two options. Either option requires that the associated role has, at minimum, a policy that permits codedeploy:* and s3:Put*.
  5. 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.
  6. Temporary access keys. These will use the global keys from the Jenkins instance.

Pipeline

  1. Create a Jenkins Pipeline project
  2. Use the Pipeline Snippet Generator
  3. For 'Sample Step', choose 'step: General Build Step'
  4. For 'Build Step', choose 'Deploy an application to AWS CodeDeploy'
  5. populate variables and then 'Generate Groovy'

Here is a rather blank example:

step([$class: 'AWSCodeDeployPublisher', applicationName: '', awsAccessKey: '', awsSecretKey: '', credentials: 'awsAccessKey', deploymentGroupAppspec: false, deploymentGroupName: '', deploymentMethod: 'deploy', excludes: '', iamRoleArn: '', includes: '**', proxyHost: '', proxyPort: 0, region: 'ap-northeast-1', s3bucket: '', s3prefix: '', subdirectory: '', versionFileName: '', waitForCompletion: false])

License

This plugin is licensed under Apache 2.0. See the LICENSE file for more information.

You can’t perform that action at this time.