title: sbt dist works in terminal but not with Jenkins as shell script
body: <p>I am completely new to both sbt and Jenkins. I am trying to construct a build plan using Jenkins piplelines. The following commands run just fine within shell script: <code>sbt compile</code> &amp; <code>sbt package</code></p>
  
  <p>However, <code>sbt dist</code> does not work. I get the error <code>not a valid command</code></p>
  
  <p>What is puzzling me, I can run the command from terminal just fine.
  <a href="https://i.stack.imgur.com/d4RTt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/d4RTt.png" alt="enter image description here"></a></p>
  
  <p>For what its workth, here is the contents of jenkinsfile (I know <code>sbt dist</code> should be in build, but I am still experimenting):</p>
  
  <pre><code>pipeline {
    agent any
    stages {
      stage('Build') {
        parallel {
          stage('Build') {
            steps {
              sh 'echo "Compiling... "'
              sh 'sbt compile'
            }
          }
          stage('Deploy') {
            steps {
              sh 'echo "Deploying... "'
              sh 'echo "packaging.. "'
              sh 'sbt dist'
            }
          }
        }
      }
    }
  }
  </code></pre>
  
  <p>Jenkins 2.89.1, sbt tried both: 0.13 and 1.0.x</p>