You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "Enable Pipelines" setting of the repo should have been set to false.
Actual Behavior
The "Enable Pipelines" setting of the repo was still set to true.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
Define a bitbucket_repository resource with pipelines_enabled set to true.
terraform apply the new resource.
Note that pipelines are enabled for the new repo, see https://bitbucket.org//<repo_slug>/admin/pipelines/settings
Set pipelines_enabled to false in the Terraform config for that repo.
terraform apply the change.
Note that pipelines are still enabled for the repo.
Important Factoids
Creating a new repo with pipelines_enabled initially to false does work - pipelines are disabled. This bug only occurs when a repo that previously had pipelines enabled is updated to disable pipelines.
I had a quick look at what could cause this, and it seems to be caused by the encoding of the body to JSON of the client. The following struct defines the pipelines configuration entity:
Terraform Version
1.6.1
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The "Enable Pipelines" setting of the repo should have been set to false.
Actual Behavior
The "Enable Pipelines" setting of the repo was still set to true.
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
bitbucket_repository
resource withpipelines_enabled
set totrue
.terraform apply
the new resource.pipelines_enabled
tofalse
in the Terraform config for that repo.terraform apply
the change.Important Factoids
Creating a new repo with
pipelines_enabled
initially tofalse
does work - pipelines are disabled. This bug only occurs when a repo that previously had pipelines enabled is updated to disable pipelines.References
The text was updated successfully, but these errors were encountered: