Skip to content

Commit 68934d7

Browse files
authored
wip: adding variable id (#5844)
1 parent 395d659 commit 68934d7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

api/restHandler/app/pipeline/configure/DeploymentPipelineRestHandler.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2023,13 +2023,13 @@ func (handler *PipelineConfigRestHandlerImpl) GetCdPipelineById(w http.ResponseW
20232023
return
20242024
}
20252025

2026-
ciConf, err := handler.pipelineBuilder.GetCdPipelineById(pipelineId)
2026+
cdPipeline, err := handler.pipelineBuilder.GetCdPipelineById(pipelineId)
20272027
if err != nil {
20282028
handler.Logger.Errorw("service err, GetCdPipelineById", "err", err, "appId", appId, "pipelineId", pipelineId)
20292029
common.WriteJsonResp(w, err, nil, http.StatusInternalServerError)
20302030
return
20312031
}
2032-
cdResp, err := pipeline.CreatePreAndPostStageResponse(ciConf, version)
2032+
cdResp, err := pipeline.CreatePreAndPostStageResponse(cdPipeline, version)
20332033
if err != nil {
20342034
handler.Logger.Errorw("service err, CheckForVersionAndCreatePreAndPostStagePayload", "err", err, "appId", appId, "pipelineId", pipelineId)
20352035
common.WriteJsonResp(w, err, nil, http.StatusInternalServerError)

pkg/pipeline/PipelineStageService.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,7 @@ func (impl *PipelineStageServiceImpl) BuildVariableAndConditionDataByStepIdDeepC
349349
for _, variable := range variables {
350350
variableNameIdMap[variable.Id] = variable.Name
351351
variableDto := &bean.StepVariableDto{
352+
Id: variable.Id,
352353
Name: variable.Name,
353354
Format: variable.Format,
354355
Description: variable.Description,

0 commit comments

Comments
 (0)