Actions29
Overview
This node integrates with the Bitbucket Data Center API to manage repositories within projects. Specifically, the "Create" operation for the "Repository" resource allows users to create new repositories inside a specified project on their Bitbucket Data Center instance.
Common scenarios where this node is beneficial include automating repository creation as part of CI/CD pipelines, setting up new projects programmatically, or managing repositories at scale without manual intervention through the Bitbucket UI.
For example, a DevOps engineer can use this node to automatically create a repository when a new project is initiated, specifying whether the repository should be public or private and providing descriptive metadata.
Properties
| Name | Meaning |
|---|---|
| Authentication | Method used to authenticate API requests. Options: Personal Access Token, Basic Auth |
| Project | The key of the project under which the repository will be created (required) |
| Repository Name | The name of the new repository (required) |
| Repository Slug | The slug identifier for the repository; if left empty, it will be auto-generated |
| Description | A textual description of 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 such as repository 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 server.
- Requires authentication credentials configured in n8n, either via:
- A personal access token credential
- Basic authentication credential
- The node uses the Bitbucket Data Center REST API endpoints under
/rest/api/1.0/projects/{projectKey}/repos.
Troubleshooting
Common Issues:
- Invalid or missing project key: Ensure the project key exists and is correctly selected.
- Authentication failures: Verify that the provided API token or basic auth credentials are valid and have sufficient permissions.
- Repository name conflicts: If a repository with the same name already exists in the project, the API will reject the creation request.
Error Messages:
Bitbucket Data Center API request failed: ...indicates an issue with the API call, possibly due to network issues, invalid credentials, or incorrect parameters."The operation "create" is not supported for resource "repository"would indicate a misconfiguration but is unlikely here since "create" is supported.
Resolution Tips:
- Double-check all required fields are filled.
- Confirm the project key and repository name are correct.
- Check API credentials and permissions.
- Review Bitbucket server logs for more detailed error information if accessible.