An CDK Construct to create repositories, webhooks and maybe more on BitBucket Server (formarly Stash). It's not working with BitBucket Cloud.
See also examples
folder. bitbucket-backend-stack
creates the custom resource and shares the ServiceToken as output. bitbucket-stack
uses ServiceToken and creates new BitBucket resources.
Ensure to have SSM Parameters config/bitbucket/host
, config/bitbucket/username
and config/bitbucket/password
.
cdk deploy --app "npx ts-node bitbucket-backend-stack.ts"
cdk deploy --app "npx ts-node bitbucket-stack.ts"
[x] Repository
[x] WebHook
[x] Project
[] Support cross account usage (see also #8470 ) [] Explicitly handle update of resources [] Explicitly handle delete of resources (using retention policy)
Set a new version with npm version
command and push changes to GitHub.
npm version x.x.x
git push