8000 fix(api): allow detailled node run from service call (#3631) · ovh/cds@6d25501 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 6d25501

Browse files
sguiheuxrichardlt
authored andcommitted
fix(api): allow detailled node run from service call (#3631)
* fix(api): allow detailled node run from service call * Update workflow_run.go
1 parent 19aa43f commit 6d25501

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

engine/api/workflow_run.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,14 @@ func (api *API) getWorkflowRunHandler() service.Handler {
289289
if err != nil {
290290
return err
291291
}
292+
293+
// loadRun, DisableDetailledNodeRun = false for calls from CDS Service
294+
// as hook service. It's needed to have the buildParameters.
292295
run, err := workflow.LoadRun(api.mustDB(), key, name, number,
293296
workflow.LoadRunOptions{
294297
WithArtifacts: true,
295298
WithLightTests: true,
296-
DisableDetailledNodeRun: true,
299+
DisableDetailledNodeRun: getService(ctx) == nil,
297300
},
298301
)
299302
if err != nil {

0 commit comments

Comments
 (0)
0