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 authored and ipolyzos committed Jul 31, 2019
1 parent e776696 commit 10d8d19
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/controller/build/recovery.go
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 10d8d19

Please sign in to comment.