1
0
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:
Anbraten
2023-11-01 09:35:11 +01:00
committed by GitHub
parent 902877690d
commit 4198c447fb
6 changed files with 58 additions and 10 deletions

View File

@@ -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")