From 6bf8f9ccf15601fc66e4bf4d3c3880f02e4b5ff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ratko=20Ru=C5=BEi=C4=8Di=C4=87?= Date: Mon, 19 May 2025 13:01:02 +0200 Subject: [PATCH] fix(bitbucketdc): build status gets incorrectly reported on multi workflow builds (#5178) Co-authored-by: Ratko Ruzicic --- server/forge/bitbucketdatacenter/bitbucketdatacenter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/forge/bitbucketdatacenter/bitbucketdatacenter.go b/server/forge/bitbucketdatacenter/bitbucketdatacenter.go index ce1db0d00..532944631 100644 --- a/server/forge/bitbucketdatacenter/bitbucketdatacenter.go +++ b/server/forge/bitbucketdatacenter/bitbucketdatacenter.go @@ -311,7 +311,7 @@ func (c *client) Status(ctx context.Context, u *model.User, repo *model.Repo, pi return fmt.Errorf("unable to create bitbucket client: %w", err) } status := &bb.BuildStatus{ - State: convertStatus(pipeline.Status), + State: convertStatus(workflow.State), URL: common.GetPipelineStatusURL(repo, pipeline, workflow), Key: common.GetPipelineStatusContext(repo, pipeline, workflow), Description: common.GetPipelineStatusDescription(pipeline.Status),