Use this example, for fix the error, it work perfectly: properties ([[$class: 'hudson.model.ParametersDefinitionProperty', parameterDefinitions: [[$class: 'hudson.model.ChoiceParameterDefinition', choices: 'Value1\nValue2' , description: '', name: 'unChoiceParameter']]]]) |