blob: 37e94680dc1a95860fde64a4281095f19fafb5ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
###########
Deployments
###########
Reference
---------
* v4 API:
+ :class:`gitlab.v4.objects.ProjectDeployment`
+ :class:`gitlab.v4.objects.ProjectDeploymentManager`
+ :attr:`gitlab.v4.objects.Project.deployments`
* v3 API:
+ :class:`gitlab.v3.objects.ProjectDeployment`
+ :class:`gitlab.v3.objects.ProjectDeploymentManager`
+ :attr:`gitlab.v3.objects.Project.deployments`
+ :attr:`gitlab.Gitlab.project_deployments`
* GitLab API: https://docs.gitlab.com/ce/api/deployments.html
Examples
--------
List deployments for a project:
.. literalinclude:: deployments.py
:start-after: # list
:end-before: # end list
Get a single deployment:
.. literalinclude:: deployments.py
:start-after: # get
:end-before: # end get
|