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),