add more comments

Signed-off-by: runzexia <runzexia@yunify.com>
This commit is contained in:
runzexia
2020-01-15 11:11:04 +08:00
parent 4b30fd8c13
commit 0531e2ce48

View File

@@ -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
<hudson.model.ChoiceParameterDefinition>
<name>1</name>
<description>x</description>
@@ -392,8 +396,7 @@ func (s *Parameters) fromEtree(properties *etree.Element) *Parameters {
</a>
</choices>
</hudson.model.ChoiceParameterDefinition>
*/
/* case2
case2: Configured by pipeline syntax, sample: parameters { choice(name: 'CHOICES', choices: ['one', 'two', 'three'], description: '') }
<hudson.model.ChoiceParameterDefinition>
<name>1</name>
<description>x</description>