From 70c6130f555381a851676626da46522162dcff43 Mon Sep 17 00:00:00 2001 From: Jefferson Ramos Date: Tue, 30 Aug 2022 12:31:17 -0300 Subject: [PATCH] fix: on cluster builds when buildEnvs contains only one build environment (#1200) --- pipelines/tekton/resources.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipelines/tekton/resources.go b/pipelines/tekton/resources.go index 5eb7fb33d..36fe55aba 100644 --- a/pipelines/tekton/resources.go +++ b/pipelines/tekton/resources.go @@ -133,7 +133,7 @@ func generatePipelineRun(f fn.Function, labels map[string]string) *pplnv1beta1.P for _, e := range f.BuildEnvs { envs = append(envs, e.KeyValuePair()) } - buildEnvs = pplnv1beta1.NewArrayOrString(envs[0], envs[1:]...) + buildEnvs.ArrayVal = envs } params := []pplnv1beta1.Param{