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
Add the library to your AWS CDK project:
npm i --save cdk-codepipeline-bitbucket-build-result-reporter
new CodePipelineBitBucketBuildResultReporter(stack, 'CodePipelineBitBucketBuildResultReporter', {
bitBucketServerAddress: 'bitbucket-server.com',
bitBucketTokenName: '/my/ssm/variable/BITBUCKET_UPDATE_BUILD_STATUS_TOKEN',
vpc,
});
Configure Bitbucket token
aws ssm put-parameter --name "/my/ssm/variable/BITBUCKET_UPDATE_BUILD_STATUS_TOKEN" --value "<generated-token>" --type "SecureString"