diff --git a/pkg/models/devops/project_pipeline.go b/pkg/models/devops/project_pipeline.go index 495aba7da..9cf748190 100644 --- a/pkg/models/devops/project_pipeline.go +++ b/pkg/models/devops/project_pipeline.go @@ -381,31 +381,31 @@ func (s *Parameters) fromEtree(properties *etree.Element) *Parameters { }) case "hudson.model.ChoiceParameterDefinition": /* - In Jenkins, different configuration methods will lead to different serialization results. - We need to be compatible with serialization results. + 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 - - + case1: Configured by KubeSphere console / Jenkins console + + 1 + x + + + 1 + 2 + 3 + + + + case2: Configured by pipeline syntax, sample: parameters { choice(name: 'CHOICES', choices: ['one', 'two', 'three'], description: '') } + + 1 + x + 1 2 3 - - - - case2: Configured by pipeline syntax, sample: parameters { choice(name: 'CHOICES', choices: ['one', 'two', 'three'], description: '') } - - 1 - x - - 1 - 2 - 3 - - + + */ choiceParameter := &Parameter{ Name: param.SelectElement("name").Text(),