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 4423046 commit dca81b3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/controller/build/recovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +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 dca81b3

Please sign in to comment.