Skip to content

Commit ce9b86d

Browse files
Merge pull request mendix#11021 from mendix/kk-pmp-api
PMP pipeline
2 parents c9a1740 + 0a24b68 commit ce9b86d

1 file changed

Lines changed: 18 additions & 34 deletions

File tree

static/openapi-spec/pmp-pipeline.yaml

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ paths:
6868
post:
6969
tags:
7070
- 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".
7373
operationId: CreatePipeline
7474
requestBody:
7575
content:
@@ -79,10 +79,10 @@ paths:
7979
examples:
8080
Request a pipeline for build:
8181
value:
82-
pipelineType: Deploy
82+
pipelineType: Build
8383
appId: ff4c5472-50bc-45ad-b1e1-817217111628
84-
packageName: sgp-v1069-c6d5bd3.mda
85-
envInternalName: sgpv1069
84+
branchName: main
85+
revisionId: "44728096"
8686
Request a pipeline for deploy:
8787
value:
8888
pipelineType: Deploy
@@ -104,11 +104,13 @@ paths:
104104
parameters:
105105
- name: pipelineId
106106
in: query
107+
description: The pipeline id which is waiting for manual approval.
107108
required: false
108109
schema:
109110
type: string
110111
- name: approve
111112
in: query
113+
description: Approve or reject pipeline in waiting state, true for approve, false for reject.
112114
required: false
113115
schema:
114116
type: boolean
@@ -118,62 +120,44 @@ paths:
118120
description: successful operation
119121
"401":
120122
$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: []
147123
components:
148124
schemas:
149125
pipeline_set_status_body:
150126
type: object
127+
description: Request body for setting pipeline status
151128
properties:
152129
stepStatus:
153130
type: string
131+
description: The pipeline step status to be set, Success or Failed
154132
callFrom:
155133
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.
156135
x-examples:
157136
Example 1:
158137
stepStatus: Success
159138
callFrom: R&D Team
160139
pipeline_creation_request_body:
161140
type: object
141+
description: Request body for creating and running a new pipeline
162142
properties:
163143
pipelineType:
164144
type: string
165-
pipelineType_copy:
166-
type: string
145+
description: Type of the pipeline, Build or Deploy
167146
appId:
168147
type: string
148+
description: Build or Deploy the package of the app with the specified appId
169149
branchName:
170150
type: string
151+
description: The branch name of the app code to build, only required for Build pipeline
171152
revisionId:
172153
type: string
154+
description: The revision ID of the app code to build, only required for Build pipeline
173155
packageName:
174156
type: string
157+
description: The name of the app package to deploy, only required for Deploy pipeline
175158
envInternalName:
176159
type: string
160+
description: The environment with specified internal name for deploy the app package, only required for Deploy pipeline
177161
x-examples:
178162
Example 1:
179163
pipelineType: Build
@@ -295,5 +279,5 @@ components:
295279
scheme: basic
296280
mxtoken:
297281
type: apiKey
298-
name: apiKey
282+
name: Authorization
299283
in: header

0 commit comments

Comments
 (0)