title: Run bash command on jenkins pipeline
body: <p>Inside a groovy script (for a jenkins pipeline): How can I run a <code>bash</code> command instead of a <code>sh</code> command?</p>
  
  <p><strong>I have tried the following:</strong></p>
  
  <p>Call "<code>#!/bin/bash</code>" inside the <code>sh</code> call:</p>
  
  <pre><code>stage('Setting the variables values') {
      steps {
           sh '''
              #!/bin/bash
              echo "hello world"
           '''
      }
  }
  </code></pre>
  
  <p>Replace the <code>sh</code> call with a <code>bash</code> call: </p>
  
  <pre><code>stage('Setting the variables values') {
      steps {
           bash '''
              #!/bin/bash
              echo "hello world"
           '''
      }
  }
  </code></pre>
  
  <p><strong>Additional Info:</strong></p>
  
  <p>My command is more complex than a <code>echo hello world</code>.</p>