Skip to content

Commit

Permalink
fix: Nil pointer on build failure recovery
Browse files Browse the repository at this point in the history
fixes #804
  • Loading branch information
jamesnetherton committed Jul 4, 2019
1 parent 4423046 commit 6b3edd8
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 @@ -87,8 +87,6 @@ func (action *errorRecoveryAction) Handle(ctx context.Context, build *v1alpha1.B
return nil, nil
}

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

Expand Down

0 comments on commit 6b3edd8

Please sign in to comment.