Does Jenkins detect SVN changes but not update the workspace?

I am using Jenkins 1.461 and I am having trouble using SVN polling. My repository url is of the form svn + ssh: // ***** . I set up Jenkins to poll changes every 5 minutes. It happens that every 5 minutes there are changes:

Begins on May 2, 2012 8:26:24 Received SCM poll for XXXXXXXXX May 2, 2012 20:26:25 svn + ssh: // XXXX / svn / XXXX / XXXXXXXXX / XXXXXXXXX / XXXXXXXXX / trunk is under revision 26 192 (changed from 26 181) completed. Taken 2.6 seconds Detected changes

But the workspace is not updated after each survey. The latest revision of the workspace is still 26181, not 26192, as expected. I do not understand why. Any idea?

Michael

+6
source share
3 answers

Are the clocks synchronized on your Jenkins and SVN server? If the clock is turned off a bit more, strange things will happen. I don’t use SVN myself, so I don’t remember if this was one of the symptoms, but it would be nice to start by checking the clock.

The easiest way would be to install ntpd on both hosts, configure them to synchronize with the same source, and forget about it. If you do not have an ntp server in your organization, check out http://www.pool.ntp.org

+14
source

Using @HEAD at the end of the SVN URL actually solves the problem that Michael Marrash mentioned in the comment above.

+1
source

, , .

( angular )

1) Click on my project
   2) Click on configure
    3) On the General tab, scroll down to “Source Control”
    4) Add “@HEAD” for the repository URL
    5) Click on “Save”
    6) Click on “Apply” (important)
    7) Click Build Now for my project

Click on my project >> Recent changes

Now you will see that your project is being updated with the last commit from your repository.

0
source

All Articles