-
Notifications
You must be signed in to change notification settings - Fork 96
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(tmc): add support for bitbucket pipelines. #2010
Conversation
6d90efb
to
f97fc7a
Compare
|
|
ab11abf
to
bd60af2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initial review :)
9ae86ef
to
0e94caa
Compare
Preview of ubuntu-focal/go1.21 tests in 38c3830🔍 View Details on Terramate Cloud .
ci
cloud
cmd/terramate/cli
cmd/terramate/cli/bitbucket
cmd/terramate/cli/gitlab
generate
e2etests/cloud |
Preview of macos-ventura/go1.21 tests in 38c3830🔍 View Details on Terramate Cloud .
ci
cloud
cmd/terramate/cli
cmd/terramate/cli/bitbucket
cmd/terramate/cli/gitlab
generate
e2etests/cloud |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Few questions :)
cmd/terramate/cli/cloud.go
Outdated
Branch: c.cloud.run.metadata.BitbucketPipelinesBranch, | ||
BaseBranch: c.cloud.run.metadata.BitbucketPipelinesDestinationBranch, | ||
ChangesRequestedCount: changesRequestedCount, | ||
ApprovedCount: approvedCount, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing reviewers here? You can get them from participants
quite easily, no?
md.BitbucketPipelinesDeploymentEnvironmentUUID = os.Getenv("BITBUCKET_DEPLOYMENT_ENVIRONMENT_UUID") | ||
md.BitbucketPipelinesProjectKey = os.Getenv("BITBUCKET_PROJECT_KEY") | ||
md.BitbucketPipelinesProjectUUID = os.Getenv("BITBUCKET_PROJECT_UUID") | ||
md.BitbucketPipelinesStepTriggererUUID = os.Getenv("BITBUCKET_STEP_TRIGGERER_UUID") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the triggerer of a deployment? We can get as well the pipeline creator calling GetPipeline, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is actually the triggerer of the step. You can re-run a step in Bitbucket, if it fails. But usually yes, the step triggerer is the same as the pipeline creator but not always.
If you say fetching the pipeline creator is required to have some functionality, then yes I can fetch it.
cmd/terramate/cli/cloud.go
Outdated
Number: pr.ID, | ||
Title: pr.Title, | ||
Description: pr.Summary.Raw, | ||
CommitSHA: c.prj.headCommit(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is not correct for deployments where it should be the head commit from the branch, not the head of base branch, no?
2f15278
to
00e5545
Compare
ad22d1d
to
a81e2b6
Compare
Signed-off-by: i4k <[email protected]>
What this PR does / why we need it:
Add support for Bitbucket Cloud in the Terramate Cloud sync features.
Which issue(s) this PR fixes:
none
Special notes for your reviewer:
Does this PR introduce a user-facing change?