报错信息如下:
json: cannot unmarshal bool into Go struct field .parameters.defaultParameterValue.value of type string
jenkinsfile如下:
pipeline {
agent any
parameters {
booleanParam(name: 'refresh', description: '通过 Gradle --refresh-dependencies 参数进行 Jar 包强制刷新')
}
stages {
stage('echo ') {
steps {
script {
sh 'echo hello'
}
}
}
}
}
如果直接使用流水线在线编辑模式可以正常识别