This is an automated email from the ASF dual-hosted git repository.
abeizn pushed a commit to branch fix-cicd-deployment-no-data
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git
The following commit(s) were added to refs/heads/fix-cicd-deployment-no-data by
this push:
new 7bb58572e fix: bitbucket CicdDeploymentId
7bb58572e is described below
commit 7bb58572ee9c5228ea1ffd216cf5734b6fe435b9
Author: abeizn <[email protected]>
AuthorDate: Thu Oct 26 15:43:13 2023 +0800
fix: bitbucket CicdDeploymentId
---
backend/plugins/bitbucket/tasks/deployment_convertor.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/backend/plugins/bitbucket/tasks/deployment_convertor.go
b/backend/plugins/bitbucket/tasks/deployment_convertor.go
index 4a43526c0..28bd32498 100644
--- a/backend/plugins/bitbucket/tasks/deployment_convertor.go
+++ b/backend/plugins/bitbucket/tasks/deployment_convertor.go
@@ -85,9 +85,8 @@ func ConvertDeployments(taskCtx plugin.SubTaskContext)
errors.Error {
DomainEntity: domainlayer.DomainEntity{
Id:
idGen.Generate(data.Options.ConnectionId, bitbucketDeployment.BitbucketId),
},
- CicdScopeId: repoId,
- CicdDeploymentId:
pipelineIdGen.Generate(data.Options.ConnectionId,
bitbucketDeployment.PipelineId),
- Name: bitbucketDeployment.Name,
+ CicdScopeId: repoId,
+ Name: bitbucketDeployment.Name,
Result: devops.GetResult(&devops.ResultRule{
Failed: []string{},
Success: []string{models.COMPLETED},
@@ -115,6 +114,7 @@ func ConvertDeployments(taskCtx plugin.SubTaskContext)
errors.Error {
domainDeployCommit.Environment = devops.TESTING
}
+ domainDeployCommit.CicdDeploymentId =
domainDeployCommit.Id
return []interface{}{domainDeployCommit,
domainDeployCommit.ToDeployment()}, nil
},
})