title: Jenkins console output not printing anything between start and end of pipeline
body: <p>I have created a new job in Jenkins using pipeline. After this I have provided Gitlab project url and Jenkinsfile path in SCM. While building the pipeline I am not able to see any message between start pipeline and end pipeline.
  While putting invalid code to JenkinsFile, build is failing but when running simple command like echo its not printing anything to console.
  Is there anything I am missing?</p>
  <p>Console Output</p>
  <pre><code>[Pipeline] Start of Pipeline
  [Pipeline] End of Pipeline
  Finished: SUCCESS
  </code></pre>
  <p>Jenkinsfile</p>
  <pre><code>pipeline {
  agent any
      stages {
          stage ('Build') {
              steps {
                  echo
                  'Running build phase. '
              }
          }
      }
  }
  </code></pre>
  <p><a href="https://i.stack.imgur.com/OJ9C6.jpg" rel="nofollow noreferrer">console output</a>
  <a href="https://i.stack.imgur.com/tblUu.png" rel="nofollow noreferrer">Jenkinsfile code</a></p>