title: Jenkins: How to use choice parameter in declarative pipeline?
body: <p>My example:</p>
  
  <pre class="lang-groovy prettyprint-override"><code>pipeline {
    agent any
    parameters {
      choice(
          name: 'myParameter',
          choices: "Option1\Option2",
          description: 'interesting stuff' )
    }
  }
  </code></pre>
  
  <p>outputs with error:</p>
  
  <pre><code>"  unexpected char: '\'  " on the line with "choices" "
  </code></pre>
  
  <p>Following these instructions: <a href="https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Parametrized-pipelines" rel="noreferrer">https://github.com/jenkinsci/pipeline-model-definition-plugin/wiki/Parametrized-pipelines</a></p>
  
  <p>Any idea or advice on what I do wrong?</p>