CloudBees Amazon Web Services Deploy Engine

1 minute read

You can deploy your Java applications to Amazon Web Services Elastic Beanstalk using Jenkins. Although Amazon Web Services Elastic Beanstalk supports multiple languages, the CloudBees deployer only supports Java at this time.

Getting started

To get started, do the following:

  1. In the Update Center, navigate to Manage JenkinsManage plugins to enable the two new plugins to support Elastic Beanstalk deployment, which you will find under Available plugins:

  2. Then, use the Manage JenkinsManage Credentials options and add your AWS credentials. Start by identifying the type of credentials you’re adding:

  3. Provide the necessary keys to Jenkins so you will be able to access AWS Elastic Beanstalk:

  4. Finally, for any job that produces a standard WAR file deploying to Tomcat, use Configure Jenkins, and as a post-build action, choose Elastic Beanstalk as the Host Service for the CloudBees Deployer:

  5. Select the AWS credentials that you provided earlier, and configure any parameters associated with the deployment:

Deploying the App to Elastic Beanstalk

Once you configure the job, the app deploys to AWS Elastic Beanstalk as a post-build step. Below is an example of a sample job deploying:

Below is an example of the sample application running: