feat(resources): add Bitbucket Data Center DevOps Platform Integration#363
Conversation
| // GetBinding for unmarshalling response body from getting project binding details | ||
| type GetBinding struct { |
There was a problem hiding this comment.
Looks like this is used by multiple resources GitLab, GitHub and now Bitbucket.
Add support for Bitbucket Data Center (Server) DevOps Platform Integration with SonarQube: - Add sonarqube_alm_bitbucket resource for managing Bitbucket DevOps Platform settings - Add sonarqube_bitbucket_binding resource for binding projects to Bitbucket repos - Add sonarqube_alm_bitbucket data source for querying existing configurations - Update GetBinding struct to include slug field for Bitbucket support - Add example configurations in examples/ directory - Generate documentation for new resources and data sources The implementation follows the same patterns as existing GitLab and GitHub DevOps Platform Integrations. Bitbucket bindings are not supported in Community edition. API endpoints implemented: - POST /api/alm_settings/create_bitbucket - POST /api/alm_settings/update_bitbucket - POST /api/alm_settings/set_bitbucket_binding - GET /api/alm_settings/get_binding - POST /api/alm_settings/delete_binding - POST /api/alm_settings/delete Testing performed: - terraform apply: successfully created Bitbucket DevOps Platform setting and project binding - terraform apply (idempotency): no changes detected, resources remained stable - terraform destroy: successfully removed all resources
ebe7a00 to
c889fe4
Compare
|
To try and address the docker-compose flakiness I used ElasticSearches official docker-compose file to improve this one. If it does not work I will revert it. EDIT: I removed those modifications. Looks like wget was removed from the search container and they switched to curl in their healthchecks SonarSource/docker-sonarqube@bc05dcd. |
c889fe4 to
2d00042
Compare
|
😢 looks like we got rate limited or something from dockerhub. Maybe retry? |
|
The build is failing because the lts-datacenter tag hasn't been updated in seven months, while the standard datacenter tag was updated yesterday. Crucially, the old tag contains wget but lacks curl, whereas the new tag has curl but lacks wget. Until the LTS tag is refreshed, we need a health check script compatible with both utilities. |
2d00042 to
d7ed08d
Compare
The lts-datacenter tag hasn't been updated in 7 months and contains wget but lacks curl, while the new datacenter tag (updated yesterday) has curl but lacks wget. This change implements a health check script that tries curl first and falls back to wget if curl is unavailable. The script: - Checks for curl availability using command -v and falls back to wget - Works with both old (lts-datacenter) and new (datacenter) image tags
d7ed08d to
9f93c64
Compare
Add support for Bitbucket Data Center (Server) DevOps Platform Integration with SonarQube:
The implementation follows the same patterns as existing GitLab and GitHub DevOps Platform Integrations. Bitbucket bindings are not supported in Community edition.
API endpoints implemented:
Testing performed: