I'm trying to setup my company's first CI/CD pipeline, to build & deploy docker containers in gke, it has been a a great learning curve so far, however I'm stuck with error in Jenkinsfile
/var/lib/jenkins/workspace/PipelineJobName/dir_command@tmp/durable-f390eb74/script.sh: 1: /var/lib/jenkins/workspace/PipelineJobName/dir_command@tmp/durable-f390eb74/script.sh: Git: not found
please note that entire pipeline job is successful with this error being reported at the end to make it look like job failed. following is my relevant jenkinsfile.
stage("staging deployment")
{
steps{
sh 'mkdir -p ice_setup'
dir("ice_setup"){
sh 'git add .'
sh "git commit -m '${COMMIT_MSG}'"
sh "git push origin ${AI_LABS_REPO_BRANCH}"
}
}
}
Jenkins version 2.176.3
any help is greatly appreciated.