Skip to content

Commit 9946b53

Browse files
committed
feat(devbuild): devbuild support newarch ticdc
1 parent 39f2889 commit 9946b53

File tree

5 files changed

+12
-1
lines changed

5 files changed

+12
-1
lines changed

tibuild/docs/docs.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -621,6 +621,7 @@ const docTemplate = `{
621621
"dumpling",
622622
"tidb-lightning",
623623
"ticdc",
624+
"ticdc-newarch",
624625
"dm",
625626
"tidb-binlog",
626627
"tidb-tools",
@@ -640,6 +641,7 @@ const docTemplate = `{
640641
"ProductDumpling",
641642
"ProductTidbLightning",
642643
"ProductTicdc",
644+
"ProductTicdcNewarch",
643645
"ProductDm",
644646
"ProductTidbBinlog",
645647
"ProductTidbTools",

tibuild/docs/swagger.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,7 @@
610610
"dumpling",
611611
"tidb-lightning",
612612
"ticdc",
613+
"ticdc-newarch",
613614
"dm",
614615
"tidb-binlog",
615616
"tidb-tools",
@@ -629,6 +630,7 @@
629630
"ProductDumpling",
630631
"ProductTidbLightning",
631632
"ProductTicdc",
633+
"ProductTicdcNewarch",
632634
"ProductDm",
633635
"ProductTidbBinlog",
634636
"ProductTidbTools",

tibuild/docs/swagger.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ definitions:
199199
- dumpling
200200
- tidb-lightning
201201
- ticdc
202+
- ticdc-newarch
202203
- dm
203204
- tidb-binlog
204205
- tidb-tools
@@ -218,6 +219,7 @@ definitions:
218219
- ProductDumpling
219220
- ProductTidbLightning
220221
- ProductTicdc
222+
- ProductTicdcNewarch
221223
- ProductDm
222224
- ProductTidbBinlog
223225
- ProductTidbTools

tibuild/internal/controller/pipeline_trigger.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ var componentToRepoMap = map[string]string{
3131
"dumpling": "tidb",
3232
"lightning": "tidb",
3333
"br": "tidb",
34+
"ticdc-newarch": "ticdc",
3435
}
3536

3637
type PipelineTriggerStruct struct {

tibuild/pkg/rest/service/model.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const (
2525
ProductDumpling Product = "dumpling"
2626
ProductTidbLightning Product = "tidb-lightning"
2727
ProductTicdc Product = "ticdc"
28+
ProductTicdcNewarch Product = "ticdc-newarch"
2829
ProductDm Product = "dm"
2930
ProductTidbBinlog Product = "tidb-binlog"
3031
ProductTidbTools Product = "tidb-tools"
@@ -88,6 +89,7 @@ var (
8889
RepoPd = GithubRepo{Owner: "tikv", Repo: "pd"}
8990
RepoTiflash = GithubRepo{Owner: "pingcap", Repo: "tiflash"}
9091
RepoTiflow = GithubRepo{Owner: "pingcap", Repo: "tiflow"}
92+
RepoTicdc = GithubRepo{Owner: "pingcap", Repo: "ticdc"}
9193
RepoTidbBinlog = GithubRepo{Owner: "pingcap", Repo: "tidb-binlog"}
9294
RepoTidbTools = GithubRepo{Owner: "pingcap", Repo: "tidb-tools"}
9395
RepoNgMonitoring = GithubRepo{Owner: "pingcap", Repo: "ng-monitoring"}
@@ -96,7 +98,7 @@ var (
9698

9799
var allProducts = [...]Product{ProductTidb, ProductTikv, ProductPd,
98100
ProductTiflash, ProductBr, ProductTidbLightning, ProductDumpling,
99-
ProductTicdc, ProductTidbBinlog, ProductDm, ProductTidbTools,
101+
ProductTicdc, ProductTicdcNewarch, ProductDm, ProductTidbBinlog, ProductTidbTools,
100102
ProductNgMonitoring, ProductTidbDashboard, ProductDrainer, ProductPump}
101103

102104
func StringToProduct(s string) Product {
@@ -120,6 +122,8 @@ func ProdToRepo(prod Product) *GithubRepo {
120122
return &RepoTiflash
121123
case ProductTicdc, ProductDm:
122124
return &RepoTiflow
125+
case ProductTicdcNewarch:
126+
return &RepoTicdc
123127
case ProductDrainer, ProductPump:
124128
fallthrough
125129
case ProductTidbBinlog:

0 commit comments

Comments
 (0)