Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cicd): enable Bitbucket as a source for pipelines #1944

Merged
merged 5 commits into from
Feb 25, 2021

Conversation

huanjani
Copy link
Contributor

Copilot uses CodeStar Connections to allow Bitbucket as a pipeline repo source. After running pipeline update, users update their connection status (and install the host app, if necessary), while Copilot waits. Once the updated status is detected, the pipeline is retried.

Resolves #1274
Related #1339

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

* build: add BitBucket as source choice through pipeline_init step

* fix: add BB to error msg of accepted sources

* chore: add unit tests and tweak existing ones

* build: add bb to pipeline_update

* build: lc bucket, add required actions, add bb to cfn

* chore: enable template w acl for getobject and putobject

* fix: lowercase bucket in unit tests

* fix: add color highlighting to pipeline url

* fix: make comment specific to codestar

* fix: add tab in comment

* chore: change method names

* chore: reorder consts and change ifs to switches

* fix: delete unused method

* fix: removed hard-coded connection name from prompt; isolate and restrict codestar permissions

* fix: generate unique connection names

* fix: switch from Condition to go template for create connection; fix mocks

* fix: add commented examples for format strings, consts for # of letters

* update: add Bitbucket to docs

* build: add integ tests

* fix: update copyrights on cfn templates, wording tweak, var capping
* build: prep for polling by adding package and outputs

* build: accept outputs, wrap SDK codestar connections

* build: get to compiling but not functional state

* build: add codepipeline retry API call, move/add messaging/logging

* build: specify connection name in prompt; add unit tests

* chore: tuck -Acl permissions inside conditional

* fix: rename methods, change duration

* fix: streamline aws package vars, catch err if update beats retry, etc.

* chore: add unit tests for CreatePipeline

* fix: refactor new cp methods and accompanying unit tests

* fix: remove unused var

* fix: reorder methods, combine and tweak tests

* chore: add codestar interface

* fix: rename methods
@mergify mergify bot merged commit b9d08de into mainline Feb 25, 2021
@efekarakus efekarakus deleted the bitbucket-support branch August 9, 2021 19:23
thrau pushed a commit to localstack/copilot-cli-local that referenced this pull request Dec 9, 2022
Copilot uses CodeStar Connections to allow Bitbucket as a pipeline repo source. After running `pipeline update`, users update their connection status (and install the host app, if necessary), while Copilot waits. Once the updated status is detected, the pipeline is retried. 

Resolves aws#1274 
Related aws#1339

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Bitbucket repositories for Copilot pipelines
3 participants