title: Use Git Commands in Jenkins: git not found
body: <p>I'm running Jenkins on Kubernetes with the git plugin installed. 
  Now I want to use git commands in my script, which fails with the log: </p>
  
  <pre><code>script.sh: line 1: git: not found
  </code></pre>
  
  <p>My script:  </p>
  
  <pre><code>stage('Package Helm Chart'){
              sh """ 
                #!/bin/bash
  
                echo "Pushing to remote Repository.."
  
                git checkout master
  
                git add &lt;myfilehere&gt;
  
                git commit -m "[Jenkins] Adding Artifact ${env.BUILD_NUMBER} to repository"
  
                git push
  
                echo "Successfully pushed artifact to repository"
              """
  </code></pre>
  
  <p>Any idea on how to fix this? </p>
  
  <p>Cheers 
  Jst </p>