title: java.lang.NoSuchMethodError: No such DSL method '$' found among steps
body: <p>I have the following dsl</p>
  
  <pre><code>pipeline {
      agent {
          label 'test'
      }
      parameters {        
          booleanParam(defaultValue: false, description: 'This is a Release build', name: 'isRelease')
      }
  
      stages {
          stage('Build') {
              steps {
                   script {
                       if (${params.isRelease}) {
                            echo("This is a release")
                       }
                   }
              }
          }
      }
  }
  </code></pre>
  
  <p>This fails with the following error</p>
  
  <pre><code>java.lang.NoSuchMethodError: No such DSL method '$' found among steps 
  </code></pre>
  
  <p>What I am doing wrong? I am using</p>
  
  <ul>
  <li>Jenkins 2.89.4</li>
  <li>Job DSL 1.68</li>
  <li>Pipeline Job 2.20</li>
  <li>Pipeline: API 2.27</li>
  <li>Pipeline: Basic Steps 2.7</li>
  <li>Pipeline: Build Steps 2.7</li>
  <li>Pipeline: Declarative 1.2.9</li>
  </ul>