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:
script.sh: line 1: git: not found
My script:
stage('Package Helm Chart'){
sh """
#!/bin/bash
echo "Pushing to remote Repository.."
git checkout master
git add <myfilehere>
git commit -m "[Jenkins] Adding Artifact ${env.BUILD_NUMBER} to repository"
git push
echo "Successfully pushed artifact to repository"
"""
Any idea on how to fix this?
Cheers Jst