Commit 2d23979
feat(api): add pipeline trigger endpoint with multi-provider support (#48)
Add new REST API endpoint for triggering CI/CD pipelines across
multiple git providers (GitLab, GitHub, Bitbucket). Implements
multi-provider architecture pattern following existing service design.
Features:
- New POST /api/v1/trigger-pipeline endpoint with query parameters
- Multi-provider pipeline service with GitLab implementation
- Support for pipeline variables (env-var and file types)
- Comprehensive error handling (400, 401, 404, 500)
- Input validation for required parameters (gitServer, project, ref)
Implementation:
- API handler with input validation and error mapping
- Service layer with GitServerService integration for k8s resources
- Provider interface for extensible multi-provider support
- GitLab provider with pipeline triggering and variable conversion
Related issue: #48
Signed-off-by: Sergiy Kulanov <sergiy_kulanov@epam.com>1 parent da9358a commit 2d23979
File tree
32 files changed
+1110
-794
lines changed- .claude/commands/krci-ai
- .cursor/rules/krci-ai
- .github
- instructions
- prompts
- .krci-ai
- data
- tasks
- internal
- api
- errors
- models
- services
- gitlab
- pipelines
32 files changed
+1110
-794
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 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 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
This file was deleted.
This file was deleted.
This file was deleted.
Lines changed: 0 additions & 31 deletions
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments