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: `sbt compile` & `sbt package`

However, `sbt dist` does not work. I get the error `not a valid command`

What is puzzling me, I can run the command from terminal just fine.
[![enter image description here](https://i.stack.imgur.com/d4RTt.png)](https://i.stack.imgur.com/d4RTt.png)

For what its workth, here is the contents of jenkinsfile (I know `sbt dist` should be in build, but I am still experimenting):

```
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'
          }
        }
      }
    }
  }
}

```

Jenkins 2.89.1, sbt tried both: 0.13 and 1.0.x