hakanbayraktar / cdk-codepipeline-bitbucket-build-result-reporter

AWS CDK module to automatically synchronize build statuses from CodePipeline to Bitbucket

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NPM version Release

cdk-codepipeline-bitbucket-build-result-reporter

Automatically report all CodePipeline build results to a Bitbucket server. For details, see the Bitbucket REST API documentation https://docs.atlassian.com/bitbucket-server/rest/4.0.0/bitbucket-build-rest.html.

Usage

Install

Add the library to your AWS CDK project:

npm i --save cdk-codepipeline-bitbucket-build-result-reporter

Configure

Configure the Bitbucket token that is used to synchronize statuses:

aws ssm put-parameter --name "/my/ssm/variable/BITBUCKET_UPDATE_BUILD_STATUS_TOKEN" --value "<generated-token>" --type "SecureString"

Use

Note: stack must be a CDK deployment stage so that the bundled Lambda asset will be properly deployed.

  // In your infrastructure account, add to your stack
  new CodePipelineBitbucketBuildResultReporter(stack, 'CodePipelineBitbucketBuildResultReporter', {
    bitBucketServerAddress: 'bitbucket-server.com',
    bitBucketTokenName: '/my/ssm/variable/BITBUCKET_UPDATE_BUILD_STATUS_TOKEN',
    vpc,
  });

About

AWS CDK module to automatically synchronize build statuses from CodePipeline to Bitbucket

License:Apache License 2.0


Languages

Language:TypeScript 94.8%Language:JavaScript 5.2%