Skip to content

Commit

Permalink
Merge pull request #11278 from mingshewhe/bug_11264
Browse files Browse the repository at this point in the history
bug: 流水线另存为模版,模版名字与流水线名字一样,会报"流水线名称已被使用" #11264
  • Loading branch information
bkci-bot authored Dec 5, 2024
2 parents 738322b + c86b09d commit 65c1c4f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1715,7 +1715,7 @@ class PipelineRepositoryService constructor(
): PipelineName {
setting.checkParam()

if (isPipelineExist(
if (!isTemplate && isPipelineExist(
projectId = setting.projectId,
excludePipelineId = setting.pipelineId,
pipelineName = setting.pipelineName
Expand Down Expand Up @@ -1761,7 +1761,7 @@ class PipelineRepositoryService constructor(
if (old?.pipelineName != null) {
oldName = old.pipelineName
}
if (versionStatus.isReleasing()) pipelineInfoDao.update(
if (!isTemplate && versionStatus.isReleasing()) pipelineInfoDao.update(
dslContext = transactionContext,
projectId = setting.projectId,
pipelineId = setting.pipelineId,
Expand Down

0 comments on commit 65c1c4f

Please sign in to comment.