Jenkins : CodePipeline Plugin

AWS CodePipeline plugin

Plugin Information

View AWS CodePipeline on the plugin site for more information.

Older versions of this plugin may not be safe to use. Please review the following warnings before using an older version:

AWS CodePipeline is a continuous delivery service for fast and reliable application updates.

The AWS CodePipeline plugin for Jenkins provides a pre-build SCM and a post-build (publisher) step for your Jenkins project. It will poll for AWS CodePipeline jobs, and download input artifacts. When a build succeeds, it will compress the build artifacts and upload them to AWS CodePipeline.

Set up

  1. Install the AWS CodePipeline plugin.
  2. Open your project configuration, or create a new project.
  3. In the Source Code Management section, select AWS CodePipeline.
    1. Fill out the required fields.
  4. In the Build Trigger section, select Poll SCM.
    1. Define a schedule using cron syntax.
  5. Configure your build step as you normally would.
  6. In the Post-build Actions section, add AWS CodePipeline Publisher.
    1. Configure any output artifacts (see below).

AWS CodePipeline Publisher

The publisher can upload zero to five output artifacts.

If you don't need to upload output artifacts, don't add any output locations (but do add AWS CodePipeline Publisher as a Post-build action).

To upload output artifacts, add an output location per artifact:

  • If the location is blank: the whole workspace will be compressed, and uploaded.
  • If the location is a directory: the directory will be compressed, and uploaded.
  • If the location is a normal file: the file will be uploaded as-is (no compression).
Archive format

For blank (workspace) or directory output locations, the plugin will use the same archive format used by the input artifacts. If the input archive type could not be determined, it will default to ZIP.

Supported archive formats:

  • zip
  • tar
  • tar.gz

License

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

Build Status

Changelog

0.23 (Dec 08 2016)

  • (plus)   Add sa-east-1 as one of the supported regions.

0.22 (Dec 01 2016)

  • (plus)  Add eu-central-1 as one of the supported regions.

0.21 (Nov 07 2016)

  • (error) Fix a bug with initializing s3 client with proxy settings.

0.20 (Oct 26 2016)

  • (plus) Add ap-southeast-2 as one of the supported regions.

0.19 (Oct 25 2016)

  • (info)  Updating the Jenkins repository URL.
  • (info)  Upgrade AWS Java SDK to 1.11.44.
  • (plus)  Add us-east-2 as one of the supported regions
  • (plus)  Add ap-southeast-1 as one of the supported regions
  • (error)  Moving acknowledgeJob call to checkout method.

0.17 (Aug 10 2016)

  • (error) Upgrade AWS Java SDK to 1.11.24 (resolves memory leak in version 1.11.3).

0.16 (Jul 21 2016)

  • (plus) Add support for large output artifacts.
  • (plus) Cleanup temporary files after use.
  • (error) Fail AWS CodePipeline jobs when the upload of output artifacts fails.

0.15 (Jul 5 2016)

  • (error) Fix no @DataBoundConstructor issue.
  • (plus) Upload normal files as-is (no compression).
  • (plus) Include plugin version in User-Agent header.

0.14 (Jun 23 2016)

  • (plus) Add support for EU-WEST-1.
  • (info) Upgrade AWS Java SDK to 1.11.3.

0.13 (May 17 2016)

  • (plus) Add jitter to PollForJobs calls to reduce chances of being throttled.
  • (plus) Turn on Jelly's XSS prevention.
  • (error) Fix expired token error for builds that get queued for a while.
  • (error) Fix backslashes getting duplicated when saving job configuration.

0.12 (Mar 25 2016)

  • (info) Update the AWS CodePipeline Publisher schema, to make it easier to use with the Job DSL plugin.

0.11 (Nov 23 2015)

  • (info) Follow symbolic links when compressing outputs.

0.10 (Nov 6 2015)

  • (info) Update the plugin's wiki page link.

0.9 (Nov 5 2015)

  • (info) Prepare plugin to be hosted in Jenkins Update Center.