diff --git a/pkg/models/devops/project_pipeline.go b/pkg/models/devops/project_pipeline.go index cf7e1eccf..495aba7da 100644 --- a/pkg/models/devops/project_pipeline.go +++ b/pkg/models/devops/project_pipeline.go @@ -380,7 +380,11 @@ func (s *Parameters) fromEtree(properties *etree.Element) *Parameters { Type: ParameterTypeMap["hudson.model.PasswordParameterDefinition"], }) case "hudson.model.ChoiceParameterDefinition": - /* case1 + /* + In Jenkins, different configuration methods will lead to different serialization results. + We need to be compatible with serialization results. + + case1: Configured by KubeSphere console / Jenkins console 1 x @@ -392,8 +396,7 @@ func (s *Parameters) fromEtree(properties *etree.Element) *Parameters { - */ - /* case2 + case2: Configured by pipeline syntax, sample: parameters { choice(name: 'CHOICES', choices: ['one', 'two', 'three'], description: '') } 1 x