Deployments

Use ProjectDeployment objects to manipulate project deployments. The gitlab.Gitlab.project_deployments, and Project.deployments manager objects provide helper functions.

Examples

List deployments for a project:

deployments = gl.project_deployments.list(project_id=1)
# or
deployments = project.deployments.list()

Get a single deployment:

deployment = gl.project_deployments.get(deployment_id, project_id=1)
# or
deployment = project.deployments.get(deployment_id)