我的例子:
pipeline {
agent any
parameters {
choice(
name: 'myParameter',
choices: "Option1\Option2",
description: 'interesting stuff' )
}
}
输出出现错误:
" unexpected char: '\' " on the line with "choices" "
按照这些说明进行操作:https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Parametrized-pipelines
您有任何想法或建议,我做错了什么吗?
"Option1\nOption2"
。 - mkobit