A Jenkins plugin to populate environment variables from AWS Parameter Store.

{jenkins-plugin-info:aws-parameter-store}

Overview

This plugin collects parameters from the AWS Parameter Store and sets them as environment variables for a build.

Each AWS Parameter Store parameter name is converted to uppercase and any non-numeric characters are converted to underscores. For example, the parameter name my-param1 with value my-value1 would become the environment variable MY_PARAM1=my-value1.

This plugin is compatible with AWS Parameter Store Hierarchies. A path and recursive indicator can be specified to pass to the GetParametersByPath API call. The naming parameter can be used to specify how the environment variable is derived from the path:

Parameter types are handled as follow:

Configuration

The plugin is configured on each build configuration page:

Screenshot

This has the following fields:

Pipelines

This plugin can be included in your Jenkinsfile, for example:

withAWSParameterStore(credentialsId: '', naming: 'relative', path: '/service', recursive: true, regionName: 'eu-west-1') {
  // some block
}

ChangeLog

1.1.0 (2018-04-05)

1.0.0 (2018-03-27)