You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: static/openapi-spec/pmp-pipeline.yaml
+18-34Lines changed: 18 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -68,8 +68,8 @@ paths:
68
68
post:
69
69
tags:
70
70
- pipelines
71
-
summary: Create a pipeline
72
-
description: Create a pipeline for build or deployment. This API is only available when Build Utility is "Kubernetes" and Deployment Method is "Private Cloud Standalone".
71
+
summary: Create and run a new pipeline for build or deploy
72
+
description: Create and run a new pipeline for build or deploy. This API is only available when Build Utility is "Kubernetes" and Deployment Method is "Private Cloud Standalone".
73
73
operationId: CreatePipeline
74
74
requestBody:
75
75
content:
@@ -79,10 +79,10 @@ paths:
79
79
examples:
80
80
Request a pipeline for build:
81
81
value:
82
-
pipelineType: Deploy
82
+
pipelineType: Build
83
83
appId: ff4c5472-50bc-45ad-b1e1-817217111628
84
-
packageName: sgp-v1069-c6d5bd3.mda
85
-
envInternalName: sgpv1069
84
+
branchName: main
85
+
revisionId: "44728096"
86
86
Request a pipeline for deploy:
87
87
value:
88
88
pipelineType: Deploy
@@ -104,11 +104,13 @@ paths:
104
104
parameters:
105
105
- name: pipelineId
106
106
in: query
107
+
description: The pipeline id which is waiting for manual approval.
107
108
required: false
108
109
schema:
109
110
type: string
110
111
- name: approve
111
112
in: query
113
+
description: Approve or reject pipeline in waiting state, true for approve, false for reject.
112
114
required: false
113
115
schema:
114
116
type: boolean
@@ -118,62 +120,44 @@ paths:
118
120
description: successful operation
119
121
"401":
120
122
$ref: "#/components/responses/UnauthorizedError"
121
-
/pipeline/manual_approve:
122
-
post:
123
-
tags:
124
-
- pipeline
125
-
summary: Approve or reject a manual step of pipeline
126
-
description: Approve or reject a manual step of a waiting pipeline.
127
-
operationId: ApprovePipelineStep2
128
-
parameters:
129
-
- name: pipelineId
130
-
in: query
131
-
required: false
132
-
schema:
133
-
type: string
134
-
- name: approve
135
-
in: query
136
-
required: false
137
-
schema:
138
-
type: boolean
139
-
default: false
140
-
responses:
141
-
"200":
142
-
description: successful operation
143
-
"401":
144
-
$ref: "#/components/responses/UnauthorizedError"
145
-
security:
146
-
- basicAuth: []
147
123
components:
148
124
schemas:
149
125
pipeline_set_status_body:
150
126
type: object
127
+
description: Request body for setting pipeline status
151
128
properties:
152
129
stepStatus:
153
130
type: string
131
+
description: The pipeline step status to be set, Success or Failed
154
132
callFrom:
155
133
type: string
134
+
description: Who is calling this API to set the pipeline step status, e.g. R&D Team, QA Team, Dev Team, etc.
156
135
x-examples:
157
136
Example 1:
158
137
stepStatus: Success
159
138
callFrom: R&D Team
160
139
pipeline_creation_request_body:
161
140
type: object
141
+
description: Request body for creating and running a new pipeline
162
142
properties:
163
143
pipelineType:
164
144
type: string
165
-
pipelineType_copy:
166
-
type: string
145
+
description: Type of the pipeline, Build or Deploy
167
146
appId:
168
147
type: string
148
+
description: Build or Deploy the package of the app with the specified appId
169
149
branchName:
170
150
type: string
151
+
description: The branch name of the app code to build, only required for Build pipeline
171
152
revisionId:
172
153
type: string
154
+
description: The revision ID of the app code to build, only required for Build pipeline
173
155
packageName:
174
156
type: string
157
+
description: The name of the app package to deploy, only required for Deploy pipeline
175
158
envInternalName:
176
159
type: string
160
+
description: The environment with specified internal name for deploy the app package, only required for Deploy pipeline
0 commit comments