Skip to content

Commit

Permalink
fix(api): allow detailled node run from service call (#3631)
Browse files Browse the repository at this point in the history
* fix(api): allow detailled node run from service call

* Update workflow_run.go
  • Loading branch information
sguiheux authored and richardlt committed Nov 22, 2018
1 parent 19aa43f commit 6d25501
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion engine/api/workflow_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,14 @@ func (api *API) getWorkflowRunHandler() service.Handler {
if err != nil {
return err
}

// loadRun, DisableDetailledNodeRun = false for calls from CDS Service
// as hook service. It's needed to have the buildParameters.
run, err := workflow.LoadRun(api.mustDB(), key, name, number,
workflow.LoadRunOptions{
WithArtifacts: true,
WithLightTests: true,
DisableDetailledNodeRun: true,
DisableDetailledNodeRun: getService(ctx) == nil,
},
)
if err != nil {
Expand Down

0 comments on commit 6d25501

Please sign in to comment.