hashicorp / terraform-provider-bitbucket

This Terraform provider is archived per our provider archiving process: https://terraform.io/docs/internals/archiving.html
https://registry.terraform.io
Mozilla Public License 2.0
31 stars 106 forks source link

Feature/environments and deployment vars #57

Closed blagerweij closed 4 years ago

blagerweij commented 4 years ago

Added support for environments and deployment variables

For example:

resource "bitbucket_repository" "terratest" {
  owner      = "carepaydev"
  name       = "terratest"
  scm        = "git"
  pipelines_enabled = true
  is_private = true
  project_key = "TOOL"
}

resource "bitbucket_deployment" "ketest" {
  repository = bitbucket_repository.terratest.id
  name = "ke-test"
  stage = "Test"
}

resource "bitbucket_deployment_variable" "country" {
  key = "COUNTRY"
  value = "ke"
  deployment = bitbucket_deployment.ketest.id
}
blagerweij commented 4 years ago

I've ran the tests locally without any issues, could the failed tests in Travis-CI be related to the Go version, or related to change to terraform-plugin-sdk ? @cwood ?

gonzgonz commented 4 years ago

this would be so nice to have it merged, any chance on sorting out the tests?

blagerweij commented 4 years ago

I've updated the vendor dependencies, and bumped go version to 1.13. Tests are now green. The PR has become bigger than anticipated since I also took the opportunity to upgrade the plugin-sdk. Hope that's OK.