From b3690795a6346755b838c413cf86ebe02373c3d9 Mon Sep 17 00:00:00 2001 From: runzexia Date: Wed, 15 Jan 2020 11:45:16 +0800 Subject: [PATCH] refmt code Signed-off-by: runzexia --- pkg/models/devops/project_pipeline.go | 42 +++++++++++++-------------- 1 file changed, 21 insertions(+), 21 deletions(-) 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(),