Jenkins download svn code has a delay solution

Problem: jenkins cannot detect the latest modification

Solution : Adjust the system time of the jenkins server to be the same as the system time of the svn server.

 

When applying Jenkins, we will find that sometimes when jenkins checks the svn code, there will be a delay. Obviously, the code has been modified and submitted successfully, but when jenkins is downloaded, it is not the latest version number.

After searching on the Internet, the svn plugin of Jenkins uses the time tag to download instead of fetching HEAD, so if the submitted code time of the svn server is later than the current time of Jenkins, the code will not be updated.

Then we checked, the time of the jenkins server is 4 minutes behind the svn server, so there will be a 4 minute delay.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326433256&siteId=291194637