Skip to content

Commit

Permalink
fix: Nil pointer on build failure recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnetherton committed Jul 4, 2019
1 parent 91e8305 commit 4e7c1df
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/controller/build/recovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ func (action *errorRecoveryAction) Handle(ctx context.Context, build *v1alpha1.B
return nil, nil
}

build.Status = v1alpha1.BuildStatus{}
build.Status.Phase = v1alpha1.BuildPhaseInitial
build.Status.Failure.Recovery.Attempt++
build.Status.Failure.Recovery.AttemptTime = metav1.Now()

Expand Down

0 comments on commit 4e7c1df

Please sign in to comment.