Skip to content

Commit

Permalink
Merge branch 'main' into chore/license-tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
wass3rw3rk authored Sep 29, 2023
2 parents 9767b1f + f021c40 commit c72fcfe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions api/build/cancel.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,15 @@ func CancelBuild(c *gin.Context) {
return
}

// remove build executable for clean up
_, err = database.FromContext(c).PopBuildExecutable(ctx, b.GetID())
if err != nil {
retErr := fmt.Errorf("unable to pop build %s from executables table: %w", entry, err)
util.HandleError(c, http.StatusInternalServerError, retErr)

return
}

// retrieve the steps for the build from the step table
steps := []*library.Step{}
page := 1
Expand Down

0 comments on commit c72fcfe

Please sign in to comment.