Jenkins Not pulling the latest commit into master or slave 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?
You can use a plugin called &quot;Workspace Cleanup Plugin&quot; which wipes out the workspace post build. This can be a part of the pipeline and would not require manual cleanup every time when a build should be triggered.

For the second issue, I would recommend you to check if you're able to checkin to the same repository with git credentials configured in jenkins settings through the command line in the slave.