I have a Jenkins pipeline where after every build I change a file(increase build version in a property file) and checkin back to the git repository. After a build, I commit some differnt code change to the git repo and run the build. One of the following two things happen
- Jenkins does not pull the latest code change from git to master machine or slave machine.
- The build increment checkin stage fails when we checkin from Jenkins slave.
The only solution is to wipe up the repository and build it again . Our project is a very big one and doing this every time causes a lot of time-wasting.
What configuration am i missing?