Set custom deployment permissions for your environments
Custom deployment permissions are only available to customers on a Premium plan.
Deployment permissions let repository admins control who can deploy to specific environments in Bitbucket Pipelines. By adding individual users or groups to an environment's permission list, you can restrict deployment access to only authorized team members to help protect sensitive environments, such as your production environment, from unintended deployments.
前提条件
Bitbucket Pipelines must be enabled for the repository.
The repository must have at least one deployment environment configured.
You must have Admin permissions on the repository to manage deployment permissions.
Users must have at least write access to the repository to run pipelines. Read-only users can be added to the deployment permissions list but will not be able to trigger deployments. Deployment permissions provide additional control over which write-access users can deploy to specific environments.
For details on setting up and monitoring deployments, refer to Set up and monitor deployments.
How deployment permissions work
When deployment permissions are configured for an environment:
Only the users and groups listed added to that specific environment can trigger deployments.
If no user/group permissions are configured for an environment, the existing deployment behavior continues (based on the Allow only admins to deploy to this environment setting).
Deployment permissions take precedence over any scheduled or automated deployments, which means these deployments will also be halted and will require an approved user to resume the deployment.
Add users or groups to an environment
Open the repository in Bitbucket.
Select … associated with the repository on the left sidebar.
Select Settings to open your repository settings.
Select Pipelines on the left sidebar, and then select Deployments.
Select the environment you want to set deployment permissions for.
Under Deployment permissions section, select Allow selected users or groups to deploy to this environment.
Select the Add users or groups button.
Search for and select the users or groups you want to allow to deploy to this environment.
Select Confirm to add the users and groups you’ve selected.
Remove users or groups from an environment
Open the repository in Bitbucket.
Select … associated with the repository on the left sidebar.
Select Settings to open your repository settings.
Select Pipelines on the left sidebar, and then select Deployments.
Select the environment you want to update.
In the Permissions section, find the user or group you want to remove.
Select Remove next to the user or group.
既知の制限事項
Each environment supports a maximum of 100 users and groups combined.
You can either use existing admin-only deployments or custom deployment permissions.
Automated pipelines, including scheduled or automatically triggered pipelines, are also halted or paused when deployment permissions are configured for the target environment.
この内容はお役に立ちましたか?