diff --git a/pkg/apis/build/v1beta1/build_conversion.go b/pkg/apis/build/v1beta1/build_conversion.go index 21b442007e..2562a54131 100644 --- a/pkg/apis/build/v1beta1/build_conversion.go +++ b/pkg/apis/build/v1beta1/build_conversion.go @@ -166,7 +166,7 @@ func (dest *BuildSpec) ConvertFrom(orig *v1alpha1.BuildSpec) error { } //handle spec.Dockerfile migration - if orig.Dockerfile != nil { + if orig.Dockerfile != nil && *orig.Dockerfile != "" { dockerfileParam := ParamValue{ Name: "dockerfile", SingleValue: &SingleValue{