Skip to content

Commit 5ec9d66

Browse files
authoredOct 24, 2024··
Merge pull request #30 from Strato-YangSungHun/main
README.md / api-docs.json / swagger.json / docker-compose.yaml update
2 parents 9164dbe + 21338a1 commit 5ec9d66

File tree

4 files changed

+1429
-121
lines changed

4 files changed

+1429
-121
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# MC-Workflow-Manager**MC-Workflow-Manager** is one of the components of the [M-CMP](https://github.com/m-cmp/docs/tree/main) platform. With **MC-Workflow-Manager**, you can easily create and execute workflows, as well as modify and delete them as needed. For example, it allows you to create and manage multi-cloud infrastructures and seamlessly deploy applications across multiple clouds.## Features- Workflow creation and execution- Workflow Stage management- Workflow management---## Table of Contents1. [System Requirements](#system-requirements)2. [Installation with Docker Compose](#installation-with-docker-compose)3. [Project Structure](#project-structure)4. [Run Instructions](#run-instructions)5. [Contributing](#contributing)6. [License](#license)---## System RequirementsTo use **mc-workflow-manager**, ensure your system meets the following requirements:- **Operating System**: Linux (Ubuntu 22.04 LTS recommended)- **Java**: OpenJDK 17+- **Gradle**: v7.6+- **Docker**: v24.0.2+- **WorkflowEngine(Jenkins)**: v2.424+- **Git**: Latest version---## Installation with Docker ComposeThe easiest way to deploy **mc-workflow-manager** is via Docker Compose. Follow the steps below to get started.### Step 1: Clone the RepositoryFirst, clone the `mc-workflow-manager` repository to your local machine:```bashgit clone https://github.com/m-cmp/mc-workflow-manager.gitcd mc-workflow-manager```### Step 2: Configure Environment VariablesYou can customize the following environment variables in the docker-compose.yaml file:### Workflow Engine- JENKINS_USERNAME: Workflow-engine User Name- JENKINS_PASSWORD: Workflow-engine User Password### MC-Workflow-Manager- DB_INIT_YN: Database initialization (create, update, create-drop, none ....)- DB_ID: Database user ID- DB_PW: Database user password- Edit these environment variables according to your needs.### Step 3: Install and Run Docker ComposeTo bring up the mc-workflow-manager service along with its dependencies, run the following command:```bashsudo apt updatesudo apt install -y docker-composecd ./scriptchmod +x setup-docker-no-sudo.sh./setup-docker-no-sudo.shcd ..sudo docker-compose up -d```This command will pull the necessary Docker images, build the services, and start the containers in detached mode.### Step 4: Access the ApplicationOnce the services are up, you can access the following endpoints:- Swagger UI: http://<Public_IP>:18083/swagger-ui/index.html- WorkflowEngine(Jenkins) UI: http://<Public_IP>:9800- Workflow Manager UI: - http://<Public_IP>:18083 - OSS Management: http://<Public_IP>:18083/web/oss/list - Workflow Stage Management: http://<Public_IP>:18083/web/workflowStage/list - Workflow Management: http://<Public_IP>:18083/web/workflow/list - Event Listener Management: http://<Public_IP>:18083/web/eventListener/list### Step 5: Stop ServicesTo stop the running services, use:```bashsudo docker-compose down```This will gracefully shut down the containers without removing volumes, allowing you to preserve the state of the database.---## Project Structure```bashmc-workflow-manager/├── docker-compose.yaml # Docker Compose file for service orchestration├── src/ # Source code for the Workflow Manager├── script/ # Helper scripts for build and execution├── README.md # Project documentation├── LICENSE # License information└── docs/ # Additional documentation```---## Run Instructions### Manual Build and RunIf you prefer to build and run the project manually, follow these steps:- Install Git ```bash sudo apt update sudo apt install -y git ```- Download mc-workflow-manager Source Code ```bash cd $HOME git clone https://github.com/m-cmp/mc-workflow-manager.git export PROJECT_ROOT=$(pwd)/mc-workflow-manager ```- Install Required Packages/Tools and Set Environment Variables - Install Java, Docker ```bash cd $PROJECT_ROOT/script sudo chmod +x *.sh . $PROJECT_ROOT/script/init-install.sh ``` - Set Environment Variables ```bash cd $PROJECT_ROOT/script . $PROJECT_ROOT/script/set_env.sh source $HOME/.bashrc ```- Build and Run - Execute Shell Script ```bash # Run Jenkins . $PROJECT_ROOT/script/run-jenkins.sh # Build Springboot Project . $PROJECT_ROOT/script/build-mc-workflow.sh # Run Springboot Project . $PROJECT_ROOT/script/run-mc-workflow.sh ```---## ContributingWe welcome contributions to the **mc-workflow-manager** project! To get involved, follow these steps:1. Fork the repository on GitHub.2. Create a feature branch: ```git checkout -b feature-branch```.3. Commit your changes: ```git commit -m "Add new feature"```.4. Push the branch: ```git push origin feature-branch```.5. Open a Pull Request.6. For detailed guidelines, refer to the Contributing Guide.---## LicenseThis project is licensed under the terms of the Apache 2.0 License. See the LICENSE file for details.
1+
# MC-Workflow-Manager**MC-Workflow-Manager** is one of the components of the [M-CMP](https://github.com/m-cmp/docs/tree/main) platform. With **MC-Workflow-Manager**, you can easily create and execute workflows, as well as modify and delete them as needed. For example, it allows you to create and manage multi-cloud infrastructures and seamlessly deploy applications across multiple clouds.## Features- Workflow creation and execution- Workflow Stage management- Workflow management---## Table of Contents1. [System Requirements](#system-requirements)2. [Installation with Docker Compose](#installation-with-docker-compose)3. [Project Structure](#project-structure)4. [Run Instructions](#run-instructions)5. [Contributing](#contributing)6. [License](#license)---## System RequirementsTo use **mc-workflow-manager**, ensure your system meets the following requirements:- **Operating System**: Linux (Ubuntu 22.04 LTS recommended)- **Java**: OpenJDK 17+- **Gradle**: v7.6+- **Docker**: v24.0.2+- **WorkflowEngine(Jenkins)**: v2.424+- **Git**: Latest version---## Installation with Docker ComposeThe easiest way to deploy **mc-workflow-manager** is via Docker Compose. Follow the steps below to get started.### Step 1: Clone the RepositoryFirst, clone the `mc-workflow-manager` repository to your local machine:```bashgit clone https://github.com/m-cmp/mc-workflow-manager.gitcd mc-workflow-manager```### Step 2: Configure Environment VariablesYou can customize the following environment variables in the docker-compose.yaml file:### Workflow Engine- JENKINS_USERNAME: Workflow-engine User Name- JENKINS_PASSWORD: Workflow-engine User Password### MC-Workflow-Manager- DB_INIT_YN: Database initialization (create, update, create-drop, none ....)- DB_ID: Database user ID- DB_PW: Database user password- Edit these environment variables according to your needs.### Step 3: Install and Run Docker ComposeTo bring up the mc-workflow-manager service along with its dependencies, run the following command:```bashsudo apt updatesudo apt install -y docker-composecd ./scriptchmod +x setup-docker-no-sudo.sh./setup-docker-no-sudo.shcd ..# The initial user information for the workflow engine is admin / 123456# If you need to modify, modify docker-compose.yamlsudo docker-compose up -d```This command will pull the necessary Docker images, build the services, and start the containers in detached mode.### Step 4: Access the ApplicationOnce the services are up, you can access the following endpoints:- Swagger UI: http://<Public_IP>:18083/swagger-ui/index.html- WorkflowEngine(Jenkins) UI: http://<Public_IP>:9800- Workflow Manager UI: - http://<Public_IP>:18083 - OSS Management: http://<Public_IP>:18083/web/oss/list - Workflow Stage Management: http://<Public_IP>:18083/web/workflowStage/list - Workflow Management: http://<Public_IP>:18083/web/workflow/list - Event Listener Management: http://<Public_IP>:18083/web/eventListener/list### Step 5: Stop ServicesTo stop the running services, use:```bashsudo docker-compose down```This will gracefully shut down the containers without removing volumes, allowing you to preserve the state of the database.---## Project Structure```bashmc-workflow-manager/├── docker-compose.yaml # Docker Compose file for service orchestration├── src/ # Source code for the Workflow Manager├── script/ # Helper scripts for build and execution├── README.md # Project documentation├── LICENSE # License information└── docs/ # Additional documentation```---## Run Instructions### Manual Build and RunIf you prefer to build and run the project manually, follow these steps:- Install Git ```bash sudo apt update sudo apt install -y git ```- Download mc-workflow-manager Source Code ```bash cd $HOME git clone https://github.com/m-cmp/mc-workflow-manager.git export PROJECT_ROOT=$(pwd)/mc-workflow-manager ```- Install Required Packages/Tools and Set Environment Variables - Install Java, Docker ```bash cd $PROJECT_ROOT/script sudo chmod +x *.sh . $PROJECT_ROOT/script/init-install.sh ``` - Set Environment Variables ```bash cd $PROJECT_ROOT/script . $PROJECT_ROOT/script/set_env.sh source $HOME/.bashrc ```- Build and Run - Execute Shell Script ```bash # Run Jenkins . $PROJECT_ROOT/script/run-jenkins.sh # Build Springboot Project . $PROJECT_ROOT/script/build-mc-workflow.sh # Run Springboot Project . $PROJECT_ROOT/script/run-mc-workflow.sh ```---## ContributingWe welcome contributions to the **mc-workflow-manager** project! To get involved, follow these steps:1. Fork the repository on GitHub.2. Create a feature branch: ```git checkout -b feature-branch```.3. Commit your changes: ```git commit -m "Add new feature"```.4. Push the branch: ```git push origin feature-branch```.5. Open a Pull Request.6. For detailed guidelines, refer to the Contributing Guide.---## LicenseThis project is licensed under the terms of the Apache 2.0 License. See the LICENSE file for details.

‎api-docs.json

+466-39
Original file line numberDiff line numberDiff line change
@@ -13,32 +13,20 @@
1313
"url": "http://www.apache.org/licenses/LICENSE-2.0"
1414
}
1515
},
16-
"host": "localhost:18083",
16+
"host": "43.203.254.52:18083",
1717
"basePath": "/",
1818
"tags": [
19-
{
20-
"name": "workflow-controller",
21-
"description": "Workflow Controller"
22-
},
2319
{
2420
"name": "workflow-stage-controller",
2521
"description": "Workflow Stage Controller"
2622
},
27-
{
28-
"name": "oss-type-controller",
29-
"description": "Oss Type Controller"
30-
},
3123
{
3224
"name": "workflow-param-controller",
3325
"description": "Workflow Param Controller"
3426
},
3527
{
36-
"name": "open-api-web-mvc-resource",
37-
"description": "Open Api Web Mvc Resource"
38-
},
39-
{
40-
"name": "event-listener-controller",
41-
"description": "Event Listener Controller"
28+
"name": "readyz-controller",
29+
"description": "Readyz Controller"
4230
},
4331
{
4432
"name": "workflow-history-controller",
@@ -52,17 +40,33 @@
5240
"name": "swagger-config-resource",
5341
"description": "Swagger Config Resource"
5442
},
55-
{
56-
"name": "oss-controller",
57-
"description": "Oss Controller"
58-
},
5943
{
6044
"name": "swagger-welcome-web-mvc",
6145
"description": "Swagger Welcome Web Mvc"
6246
},
6347
{
6448
"name": "basic-error-controller",
6549
"description": "Basic Error Controller"
50+
},
51+
{
52+
"name": "workflow-controller",
53+
"description": "Workflow Controller"
54+
},
55+
{
56+
"name": "oss-type-controller",
57+
"description": "Oss Type Controller"
58+
},
59+
{
60+
"name": "open-api-web-mvc-resource",
61+
"description": "Open Api Web Mvc Resource"
62+
},
63+
{
64+
"name": "event-listener-controller",
65+
"description": "Event Listener Controller"
66+
},
67+
{
68+
"name": "oss-controller",
69+
"description": "Oss Controller"
6670
}
6771
],
6872
"paths": {
@@ -351,6 +355,47 @@
351355
}
352356
}
353357
},
358+
"/eventlistener/duplicate": {
359+
"get": {
360+
"tags": [
361+
"event-listener-controller"
362+
],
363+
"summary": "isEventListenerDuplicated",
364+
"operationId": "isEventListenerDuplicatedUsingGET",
365+
"consumes": [
366+
"application/json"
367+
],
368+
"produces": [
369+
"*/*"
370+
],
371+
"parameters": [
372+
{
373+
"name": "eventlistenerName",
374+
"in": "query",
375+
"description": "eventlistenerName",
376+
"required": true,
377+
"type": "string"
378+
}
379+
],
380+
"responses": {
381+
"200": {
382+
"description": "OK",
383+
"schema": {
384+
"$ref": "#/definitions/ResponseWrapper«boolean»"
385+
}
386+
},
387+
"401": {
388+
"description": "Unauthorized"
389+
},
390+
"403": {
391+
"description": "Forbidden"
392+
},
393+
"404": {
394+
"description": "Not Found"
395+
}
396+
}
397+
}
398+
},
354399
"/eventlistener/list": {
355400
"get": {
356401
"tags": [
@@ -1238,6 +1283,38 @@
12381283
}
12391284
}
12401285
},
1286+
"/readyz": {
1287+
"get": {
1288+
"tags": [
1289+
"readyz-controller"
1290+
],
1291+
"summary": "checkConnection",
1292+
"operationId": "checkConnectionUsingGET",
1293+
"consumes": [
1294+
"application/json"
1295+
],
1296+
"produces": [
1297+
"*/*"
1298+
],
1299+
"responses": {
1300+
"200": {
1301+
"description": "OK",
1302+
"schema": {
1303+
"$ref": "#/definitions/ResponseWrapper«string»"
1304+
}
1305+
},
1306+
"401": {
1307+
"description": "Unauthorized"
1308+
},
1309+
"403": {
1310+
"description": "Forbidden"
1311+
},
1312+
"404": {
1313+
"description": "Not Found"
1314+
}
1315+
}
1316+
}
1317+
},
12411318
"/swagger-ui.html": {
12421319
"get": {
12431320
"tags": [
@@ -1715,6 +1792,106 @@
17151792
}
17161793
}
17171794
},
1795+
"/workflow/runHistory/{workflowIdx}": {
1796+
"get": {
1797+
"tags": [
1798+
"workflow-controller"
1799+
],
1800+
"summary": "getWorkflowRunHistoryList",
1801+
"operationId": "getWorkflowRunHistoryListUsingGET",
1802+
"consumes": [
1803+
"application/json"
1804+
],
1805+
"produces": [
1806+
"*/*"
1807+
],
1808+
"parameters": [
1809+
{
1810+
"name": "workflowIdx",
1811+
"in": "path",
1812+
"description": "workflowIdx",
1813+
"required": true,
1814+
"type": "integer",
1815+
"format": "int64"
1816+
}
1817+
],
1818+
"responses": {
1819+
"200": {
1820+
"description": "OK",
1821+
"schema": {
1822+
"$ref": "#/definitions/ResponseWrapper«List«WorkflowRunHistoryResDto»»"
1823+
}
1824+
},
1825+
"401": {
1826+
"description": "Unauthorized"
1827+
},
1828+
"403": {
1829+
"description": "Forbidden"
1830+
},
1831+
"404": {
1832+
"description": "Not Found"
1833+
}
1834+
}
1835+
}
1836+
},
1837+
"/workflow/stageHistory/{workflowIdx}": {
1838+
"get": {
1839+
"tags": [
1840+
"workflow-controller"
1841+
],
1842+
"summary": "getWorkflowStageHistoryList",
1843+
"operationId": "getWorkflowStageHistoryListUsingGET",
1844+
"consumes": [
1845+
"application/json"
1846+
],
1847+
"produces": [
1848+
"*/*"
1849+
],
1850+
"parameters": [
1851+
{
1852+
"name": "workflowIdx",
1853+
"in": "path",
1854+
"description": "workflowIdx",
1855+
"required": true,
1856+
"type": "integer",
1857+
"format": "int64"
1858+
},
1859+
{
1860+
"name": "buildIdx",
1861+
"in": "query",
1862+
"description": "buildIdx",
1863+
"required": true,
1864+
"type": "integer",
1865+
"format": "int32"
1866+
},
1867+
{
1868+
"name": "nodeIdx",
1869+
"in": "query",
1870+
"description": "nodeIdx",
1871+
"required": true,
1872+
"type": "integer",
1873+
"format": "int32"
1874+
}
1875+
],
1876+
"responses": {
1877+
"200": {
1878+
"description": "OK",
1879+
"schema": {
1880+
"$ref": "#/definitions/ResponseWrapper«JenkinsBuildDescribeLog»"
1881+
}
1882+
},
1883+
"401": {
1884+
"description": "Unauthorized"
1885+
},
1886+
"403": {
1887+
"description": "Forbidden"
1888+
},
1889+
"404": {
1890+
"description": "Not Found"
1891+
}
1892+
}
1893+
}
1894+
},
17181895
"/workflow/template/{workflowName}": {
17191896
"get": {
17201897
"tags": [
@@ -2438,6 +2615,9 @@
24382615
"script": {
24392616
"type": "string"
24402617
},
2618+
"status": {
2619+
"type": "string"
2620+
},
24412621
"workflowIdx": {
24422622
"type": "integer",
24432623
"format": "int64"
@@ -2483,6 +2663,36 @@
24832663
}
24842664
}
24852665
},
2666+
"JenkinsStage": {
2667+
"type": "object",
2668+
"properties": {
2669+
"durationMillis": {
2670+
"type": "integer",
2671+
"format": "int64"
2672+
},
2673+
"endTimeMillis": {
2674+
"type": "integer",
2675+
"format": "int64"
2676+
},
2677+
"id": {
2678+
"type": "string"
2679+
},
2680+
"name": {
2681+
"type": "string"
2682+
},
2683+
"pauseDurationMillis": {
2684+
"type": "integer",
2685+
"format": "int64"
2686+
},
2687+
"startTimeMillis": {
2688+
"type": "integer",
2689+
"format": "int64"
2690+
},
2691+
"status": {
2692+
"type": "string"
2693+
}
2694+
}
2695+
},
24862696
"ResponseWrapper«List«WorkflowListResDto»»": {
24872697
"type": "object",
24882698
"properties": {
@@ -2520,33 +2730,18 @@
25202730
"eventListenerName": {
25212731
"type": "string"
25222732
},
2523-
"eventListenerUrl": {
2524-
"type": "string"
2525-
},
25262733
"workflowIdx": {
25272734
"type": "integer",
25282735
"format": "int64"
2529-
}
2530-
}
2531-
},
2532-
"ResponseWrapper«List«ResponseEventListenerDto»»": {
2533-
"type": "object",
2534-
"properties": {
2535-
"code": {
2536-
"type": "integer",
2537-
"format": "int32"
25382736
},
2539-
"data": {
2737+
"workflowName": {
2738+
"type": "string"
2739+
},
2740+
"workflowParams": {
25402741
"type": "array",
25412742
"items": {
2542-
"$ref": "#/definitions/ResponseEventListenerDto"
2743+
"$ref": "#/definitions/WorkflowParamDto"
25432744
}
2544-
},
2545-
"detail": {
2546-
"type": "string"
2547-
},
2548-
"message": {
2549-
"type": "string"
25502745
}
25512746
}
25522747
},
@@ -2572,6 +2767,27 @@
25722767
}
25732768
}
25742769
},
2770+
"ResponseWrapper«List«ResponseEventListenerDto»»": {
2771+
"type": "object",
2772+
"properties": {
2773+
"code": {
2774+
"type": "integer",
2775+
"format": "int32"
2776+
},
2777+
"data": {
2778+
"type": "array",
2779+
"items": {
2780+
"$ref": "#/definitions/ResponseEventListenerDto"
2781+
}
2782+
},
2783+
"detail": {
2784+
"type": "string"
2785+
},
2786+
"message": {
2787+
"type": "string"
2788+
}
2789+
}
2790+
},
25752791
"ResponseWrapper«List«WorkflowLogResDto»»": {
25762792
"type": "object",
25772793
"properties": {
@@ -2710,6 +2926,51 @@
27102926
}
27112927
}
27122928
},
2929+
"JenkinsBuildDescribeLog": {
2930+
"type": "object",
2931+
"properties": {
2932+
"durationMillis": {
2933+
"type": "integer",
2934+
"format": "int64"
2935+
},
2936+
"endTimeMillis": {
2937+
"type": "integer",
2938+
"format": "int64"
2939+
},
2940+
"error": {
2941+
"$ref": "#/definitions/Error"
2942+
},
2943+
"execNode": {
2944+
"type": "string"
2945+
},
2946+
"id": {
2947+
"type": "string"
2948+
},
2949+
"name": {
2950+
"type": "string"
2951+
},
2952+
"parameterDescription": {
2953+
"type": "string"
2954+
},
2955+
"pauseDurationMillis": {
2956+
"type": "integer",
2957+
"format": "int64"
2958+
},
2959+
"stageFlowNodes": {
2960+
"type": "array",
2961+
"items": {
2962+
"$ref": "#/definitions/JenkinsStageFlowNode"
2963+
}
2964+
},
2965+
"startTimeMillis": {
2966+
"type": "integer",
2967+
"format": "int64"
2968+
},
2969+
"status": {
2970+
"type": "string"
2971+
}
2972+
}
2973+
},
27132974
"ResponseWrapper«List«WorkflowStageTypeDto»»": {
27142975
"type": "object",
27152976
"properties": {
@@ -2773,6 +3034,31 @@
27733034
}
27743035
}
27753036
},
3037+
"WorkflowRunHistoryResDto": {
3038+
"type": "object",
3039+
"properties": {
3040+
"durationTimeMillis": {
3041+
"type": "integer",
3042+
"format": "int64"
3043+
},
3044+
"name": {
3045+
"type": "string"
3046+
},
3047+
"stages": {
3048+
"type": "array",
3049+
"items": {
3050+
"$ref": "#/definitions/JenkinsStage"
3051+
}
3052+
},
3053+
"startTimeMillis": {
3054+
"type": "integer",
3055+
"format": "int64"
3056+
},
3057+
"status": {
3058+
"type": "string"
3059+
}
3060+
}
3061+
},
27763062
"WorkflowStageTypeAndStageNameResDto": {
27773063
"type": "object",
27783064
"properties": {
@@ -2813,6 +3099,51 @@
28133099
}
28143100
}
28153101
},
3102+
"JenkinsStageFlowNode": {
3103+
"type": "object",
3104+
"properties": {
3105+
"durationMillis": {
3106+
"type": "integer",
3107+
"format": "int64"
3108+
},
3109+
"endTimeMillis": {
3110+
"type": "integer",
3111+
"format": "int64"
3112+
},
3113+
"error": {
3114+
"$ref": "#/definitions/Error"
3115+
},
3116+
"execNode": {
3117+
"type": "string"
3118+
},
3119+
"id": {
3120+
"type": "string"
3121+
},
3122+
"name": {
3123+
"type": "string"
3124+
},
3125+
"parameterDescription": {
3126+
"type": "string"
3127+
},
3128+
"parentNodes": {
3129+
"type": "array",
3130+
"items": {
3131+
"type": "string"
3132+
}
3133+
},
3134+
"pauseDurationMillis": {
3135+
"type": "integer",
3136+
"format": "int64"
3137+
},
3138+
"startTimeMillis": {
3139+
"type": "integer",
3140+
"format": "int64"
3141+
},
3142+
"status": {
3143+
"type": "string"
3144+
}
3145+
}
3146+
},
28163147
"RequestEventListenerDto": {
28173148
"type": "object",
28183149
"properties": {
@@ -2994,6 +3325,45 @@
29943325
}
29953326
}
29963327
},
3328+
"ResponseWrapper«JenkinsBuildDescribeLog»": {
3329+
"type": "object",
3330+
"properties": {
3331+
"code": {
3332+
"type": "integer",
3333+
"format": "int32"
3334+
},
3335+
"data": {
3336+
"$ref": "#/definitions/JenkinsBuildDescribeLog"
3337+
},
3338+
"detail": {
3339+
"type": "string"
3340+
},
3341+
"message": {
3342+
"type": "string"
3343+
}
3344+
}
3345+
},
3346+
"ResponseWrapper«List«WorkflowRunHistoryResDto»»": {
3347+
"type": "object",
3348+
"properties": {
3349+
"code": {
3350+
"type": "integer",
3351+
"format": "int32"
3352+
},
3353+
"data": {
3354+
"type": "array",
3355+
"items": {
3356+
"$ref": "#/definitions/WorkflowRunHistoryResDto"
3357+
}
3358+
},
3359+
"detail": {
3360+
"type": "string"
3361+
},
3362+
"message": {
3363+
"type": "string"
3364+
}
3365+
}
3366+
},
29973367
"OssDto": {
29983368
"type": "object",
29993369
"properties": {
@@ -3042,6 +3412,17 @@
30423412
}
30433413
}
30443414
},
3415+
"Error": {
3416+
"type": "object",
3417+
"properties": {
3418+
"message": {
3419+
"type": "string"
3420+
},
3421+
"type": {
3422+
"type": "string"
3423+
}
3424+
}
3425+
},
30453426
"ResponseWrapper«List«WorkflowParamDto»»": {
30463427
"type": "object",
30473428
"properties": {
@@ -3229,6 +3610,52 @@
32293610
}
32303611
}
32313612
},
3613+
"ResponseWrapper«string»": {
3614+
"type": "object",
3615+
"properties": {
3616+
"code": {
3617+
"type": "integer",
3618+
"format": "int32"
3619+
},
3620+
"data": {
3621+
"type": "string",
3622+
"enum": [
3623+
"OK",
3624+
"BAD_REQUEST",
3625+
"UNAUTHORIZED",
3626+
"FORBIDDEN",
3627+
"NOT_FOUND",
3628+
"METHOD_NOT_ALLOWED",
3629+
"CLIENT_ERROR",
3630+
"CONFLICT",
3631+
"INTERNAL_SERVER_ERROR",
3632+
"COMMON_CODE_EXISTS",
3633+
"COMMON_CODE_DELETE_NOT_ALLOWED",
3634+
"UNKNOWN_ERROR",
3635+
"ALREADY_EXISTS",
3636+
"CREATE_FAILED_PROJECT_SOURCE",
3637+
"CREATE_FAILED_JENKINS_JOB",
3638+
"EXISTS_JENKINS_JOB",
3639+
"NOT_EXISTS_JENKINS_JOB",
3640+
"ERROR_JENKINS_API",
3641+
"RUN_FAILED_DEPLOY",
3642+
"CREATE_FAILED_APPLICATION",
3643+
"NOT_EXISTS_APPLICATION",
3644+
"EXISTS_APPLICATION",
3645+
"CONNECTION_FAILED_CLUSTER",
3646+
"IN_USE_OSS",
3647+
"IS_NOT_MAPPED_OSS",
3648+
"INCORRECT_JENKINS_CONNECTION_INFO"
3649+
]
3650+
},
3651+
"detail": {
3652+
"type": "string"
3653+
},
3654+
"message": {
3655+
"type": "string"
3656+
}
3657+
}
3658+
},
32323659
"WorkflowReqDto": {
32333660
"type": "object",
32343661
"properties": {

‎docker-compose.yaml

+3-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ services:
4848
build-timeout,
4949
timestamper,
5050
ws-cleanup,
51-
ssh-slaves
51+
ssh-slaves,
52+
ssh-agent,
53+
publish-over-ssh
5254
healthcheck: # for workflow-manager
5355
test: [ "CMD", "curl", "-f", "http://localhost:8080/login" ]
5456
interval: 1m

‎swagger.json

+959-80
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.