Git diff command doesn't work with jenkins

32 views Asked by At

I have a Jenkins pipeline with a bash script to get the difference of repository TAGs. Below git diff command doesn't work with jenkins pipeline. This jenkins is installed on CentOS 7. The same script works fine with ubuntu 22.04. Note: when the script run manually on CentOS it runs perfectly. Issue occur when it run with jenkins.

git diff ${release-TAG} --name-only --diff-filter=d > path/changefile

I've change the permissions and changed the owner. In the same script i have run git branch in the same directory this also works fine. only the git diff command doesn't work.

0

There are 0 answers