-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(api,ui): add run conditions on hook" #4654
Conversation
Signed-off-by: Benjamin Coenen <[email protected]>
Signed-off-by: Benjamin Coenen <[email protected]>
Signed-off-by: Benjamin Coenen <[email protected]>
engine/api/workflow_run.go
Outdated
@@ -845,6 +846,38 @@ func (api *API) postWorkflowRunHandler() service.Handler { | |||
} | |||
} | |||
|
|||
// To handle conditon on hooks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
condition
ui/src/app/model/variable.model.ts
Outdated
@@ -27,3 +27,15 @@ export class VariableAudit { | |||
versionned: Date; | |||
author; string; | |||
} | |||
|
|||
export let GitVariables = [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused?
Signed-off-by: Benjamin Coenen <[email protected]>
Co-Authored-By: Yvonnick Esnault <[email protected]>
engine/api/workflow_run_test.go
Outdated
s := sdk.NewStage("stage 1") | ||
s.Enabled = true | ||
s.PipelineID = pip.ID | ||
pipeline.InsertStage(api.mustDB(), s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of pipeline.InsertStage
is not checked (from errcheck
)
engine/api/workflow_run_test.go
Outdated
Enabled: true, | ||
}, | ||
} | ||
pipeline.InsertJob(api.mustDB(), j, s.ID, &pip) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of pipeline.InsertJob
is not checked (from errcheck
)
engine/api/workflow_run_test.go
Outdated
s = sdk.NewStage("stage 1") | ||
s.Enabled = true | ||
s.PipelineID = pip2.ID | ||
pipeline.InsertStage(api.mustDB(), s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of pipeline.InsertStage
is not checked (from errcheck
)
engine/api/workflow_run_test.go
Outdated
Enabled: true, | ||
}, | ||
} | ||
pipeline.InsertJob(api.mustDB(), j, s.ID, &pip2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of pipeline.InsertJob
is not checked (from errcheck
)
Signed-off-by: Benjamin Coenen <[email protected]>
engine/api/workflow_run_test.go
Outdated
s := sdk.NewStage("stage 1") | ||
s.Enabled = true | ||
s.PipelineID = pip.ID | ||
pipeline.InsertStage(api.mustDB(), s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of pipeline.InsertStage
is not checked (from errcheck
)
engine/api/workflow_run_test.go
Outdated
Enabled: true, | ||
}, | ||
} | ||
pipeline.InsertJob(api.mustDB(), j, s.ID, &pip) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of pipeline.InsertJob
is not checked (from errcheck
)
engine/api/workflow_run_test.go
Outdated
s = sdk.NewStage("stage 1") | ||
s.Enabled = true | ||
s.PipelineID = pip2.ID | ||
pipeline.InsertStage(api.mustDB(), s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of pipeline.InsertStage
is not checked (from errcheck
)
engine/api/workflow_run_test.go
Outdated
Enabled: true, | ||
}, | ||
} | ||
pipeline.InsertJob(api.mustDB(), j, s.ID, &pip2) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Error return value of pipeline.InsertJob
is not checked (from errcheck
)
close feat(api,ui): condition on hook catched by hook service #4591
@ovh/cds