Actions50
- Branch Actions
- Commit Actions
- Issue Actions
- Project Actions
- Pull Request Actions
- Repository Actions
- Tag Actions
- File Actions
- User Actions
- Webhook Actions
Overview
The node integrates with Bitbucket Data Center to manage repositories within projects. Specifically, the "Repository - Create" operation allows users to create a new repository inside a specified project on their Bitbucket Data Center instance. This is useful for automating repository creation as part of development workflows, such as setting up new projects or initializing repositories programmatically.
Practical examples include:
- Automatically creating a repository when a new project is initiated.
- Setting up multiple repositories in bulk via automation.
- Integrating repository creation into CI/CD pipelines or project management tools.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method of authentication: either "Personal Access Token" or "Basic Auth". |
| Project | The key of the project under which the repository will be created. |
| Repository Name | The name of the new repository to create. |
| Repository Slug | The slug (URL-friendly identifier) for the repository; if empty, it will be auto-generated. |
| Description | Optional description text for the repository. |
| Public | Boolean flag indicating whether the repository should be public (true) or private (false). |
Output
The output JSON contains the response from the Bitbucket Data Center API after creating the repository. This typically includes details about the newly created repository such as its ID, name, slug, description, visibility status, links, and other metadata returned by the API.
No binary data output is produced by this operation.
Dependencies
- Requires access to a Bitbucket Data Center instance.
- Requires an API authentication credential configured in n8n, either a Personal Access Token or Basic Auth credentials.
- The node uses the Bitbucket Data Center REST API endpoints to perform operations.
- The server URL for the Bitbucket instance must be provided in the credentials.
Troubleshooting
- Authentication errors: Ensure that the API token or basic auth credentials are valid and have sufficient permissions to create repositories.
- Project not found: Verify that the specified project key exists and is accessible with the provided credentials.
- Repository name conflicts: If a repository with the same name or slug already exists in the project, the API will return an error.
- Invalid input: Required fields like "Project" and "Repository Name" must be provided; missing these will cause errors.
- API request failures: Network issues or incorrect server URLs can cause request failures; check connectivity and configuration.
Common error messages:
"Bitbucket Data Center API request failed: ..."indicates an issue with the API call, often due to invalid credentials, permissions, or incorrect parameters."The operation "create" is not supported for resource "repository"would indicate a misconfiguration or unsupported operation, but this should not occur for the create operation.