Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins does not getting the latest commit

I have been trying to configure jenkins with github. Basically when there are no files in workspace (the first build) everything is going fine and jenkins fetches the latest changes. But when I trigger another build (after push into github) the latest change aren`t fetched.

Can you please give me some advice on this? Thx in advance.

like image 510
Gabriel Filipiak Avatar asked Oct 05 '22 17:10

Gabriel Filipiak


1 Answers

Check the clock on the machine that runs jenkins. I experienced a similar issue where my build server was 2 minutes time difference off the source repository server, latest changes were not picked up immediately but with delay.

like image 58
MrsTang Avatar answered Oct 10 '22 02:10

MrsTang