Skip to content

Commit e3de8fe

Browse files
committed
Bug(linked ci) : validation changed
1 parent 84266dd commit e3de8fe

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/bean/app.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ type PipelineType string
183183

184184
func (pType PipelineType) IsValidPipelineType() bool {
185185
switch pType {
186-
case NORMAL, LINKED, EXTERNAL, CI_JOB, LINKED_CD:
186+
case CI_BUILD, LINKED, EXTERNAL, CI_JOB, LINKED_CD:
187187
return true
188188
default:
189189
return false
@@ -198,7 +198,7 @@ const (
198198
)
199199

200200
const (
201-
NORMAL PipelineType = "NORMAL"
201+
CI_BUILD PipelineType = "CI_BUILD"
202202
LINKED PipelineType = "LINKED"
203203
EXTERNAL PipelineType = "EXTERNAL"
204204
CI_JOB PipelineType = "CI_JOB"

pkg/pipeline/BuildPipelineConfigService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1456,7 +1456,7 @@ func (impl *CiPipelineConfigServiceImpl) GetCiPipelineMin(appId int, envIds []in
14561456
var ciPipelineResp []*bean.CiPipelineMin
14571457
for _, pipeline := range pipelines {
14581458
parentCiPipeline := pipelineConfig.CiPipeline{}
1459-
pipelineType := bean.NORMAL
1459+
pipelineType := bean.CI_BUILD
14601460

14611461
if pipelineParentCiMap[pipeline.Id] != nil {
14621462
parentCiPipeline = *pipelineParentCiMap[pipeline.Id]

0 commit comments

Comments
 (0)