From 635de6da454344280f2e823b4ea5a5d95df52699 Mon Sep 17 00:00:00 2001 From: shaowenchen Date: Fri, 30 Oct 2020 15:13:36 +0800 Subject: [PATCH] fix: adapt to different parameter types for pipeline Signed-off-by: shaowenchen --- pkg/simple/client/devops/pipeline.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/simple/client/devops/pipeline.go b/pkg/simple/client/devops/pipeline.go index c921e4182..800220d71 100644 --- a/pkg/simple/client/devops/pipeline.go +++ b/pkg/simple/client/devops/pipeline.go @@ -890,9 +890,9 @@ type BranchPipeline struct { Parameters []struct { Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."` DefaultParameterValue struct { - Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."` - Name string `json:"name,omitempty" description:"name"` - Value string `json:"value,omitempty" description:"value"` + Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."` + Name string `json:"name,omitempty" description:"name"` + Value interface{} `json:"value,omitempty" description:"value, string or bool type"` } `json:"defaultParameterValue,omitempty" description:""` Description string `json:"description,omitempty" description:"description"` Name string `json:"name,omitempty" description:"name"`