title: Jenkins Pipeline job - no stages UI on Job description
body: <p>I'm a noob in Jenkins Pipeline trying to convert a bunch of DSL Flow (Deprecated from Jenkins 2.x) type jobs to Pipeline type Jobs.
  as a first step I'm using the Job itself code field to insert my script.
  I started with a very basic example but I get a message on the job description that the script doesn't have stages although it does.</p>
  
  <blockquote>
    <p>This Pipeline has run successfully, but does not define any stages. Please use the stage step to define some stages in this Pipeline.</p>
  </blockquote>
  
  <p>the script:</p>
  
  <pre><code>pipeline {
      agent {
          label 'master'
      }
      stages {
          stage('Build') {
              steps{
                  echo 'mvn install'
              }
          }
      }
  }
  </code></pre>
  
  <p>screenshot for reference:
  <a href="https://i.stack.imgur.com/CZ1k7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/CZ1k7.png" alt="enter image description here"></a></p>
  
  <p>any help is appreciated :)</p>