You've already forked woodpecker
mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-29 21:48:14 +02:00
Destroy steps after they are done (#2681)
Co-authored-by: 6543 <m.huber@kithara.com>
This commit is contained in:
@@ -215,6 +215,11 @@ func (e *local) TailStep(_ context.Context, step *types.Step, taskUUID string) (
|
||||
return e.output, nil
|
||||
}
|
||||
|
||||
func (e *local) DestroyStep(_ context.Context, _ *types.Step, _ string) error {
|
||||
// WaitStep already waits for the command to finish, so there is nothing to do here.
|
||||
return nil
|
||||
}
|
||||
|
||||
// DestroyWorkflow the pipeline environment.
|
||||
func (e *local) DestroyWorkflow(_ context.Context, _ *types.Config, taskUUID string) error {
|
||||
log.Trace().Str("taskUUID", taskUUID).Msgf("delete workflow environment")
|
||||
|
||||
Reference in New Issue
Block a user