title: No such DSL method `stages`
body: <p>I'm trying to create my first Groovy script for Jenkins:</p>
  <p>After looking here <a href="https://jenkins.io/doc/book/pipeline/" rel="nofollow noreferrer">https://jenkins.io/doc/book/pipeline/</a>, I created this:</p>
  <pre><code>node {
    stages {
  
      stage('HelloWorld') {
        echo 'Hello World'
      }
  
      stage('git clone') {
        git clone &quot;ssh://git@mywebsite.example/myrepo.git&quot;
      }
  
    }
  }
  </code></pre>
  <p>However, I'm getting:</p>
  <p><code>java.lang.NoSuchMethodError: No such DSL method &quot;stages&quot; found among steps</code></p>
  <p>What am I missing?</p>
  <p>Also, how can I pass my credentials to the Git Repository without writing the password in plain text?</p>