fix: on cluster builds when buildEnvs contains only one build environment (#1200)

This commit is contained in:
Jefferson Ramos 2022-08-30 12:31:17 -03:00 committed by GitHub
parent cd64b70b47
commit 70c6130f55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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{