Skip to content

Commit

Permalink
wip: adding variable id (#5844)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamayushm authored Sep 13, 2024
1 parent 395d659 commit 68934d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2023,13 +2023,13 @@ func (handler *PipelineConfigRestHandlerImpl) GetCdPipelineById(w http.ResponseW
return
}

ciConf, err := handler.pipelineBuilder.GetCdPipelineById(pipelineId)
cdPipeline, err := handler.pipelineBuilder.GetCdPipelineById(pipelineId)
if err != nil {
handler.Logger.Errorw("service err, GetCdPipelineById", "err", err, "appId", appId, "pipelineId", pipelineId)
common.WriteJsonResp(w, err, nil, http.StatusInternalServerError)
return
}
cdResp, err := pipeline.CreatePreAndPostStageResponse(ciConf, version)
cdResp, err := pipeline.CreatePreAndPostStageResponse(cdPipeline, version)
if err != nil {
handler.Logger.Errorw("service err, CheckForVersionAndCreatePreAndPostStagePayload", "err", err, "appId", appId, "pipelineId", pipelineId)
common.WriteJsonResp(w, err, nil, http.StatusInternalServerError)
Expand Down
1 change: 1 addition & 0 deletions pkg/pipeline/PipelineStageService.go
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@ func (impl *PipelineStageServiceImpl) BuildVariableAndConditionDataByStepIdDeepC
for _, variable := range variables {
variableNameIdMap[variable.Id] = variable.Name
variableDto := &bean.StepVariableDto{
Id: variable.Id,
Name: variable.Name,
Format: variable.Format,
Description: variable.Description,
Expand Down

0 comments on commit 68934d7

Please sign in to comment.