Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15629

SVN polling triggers build even without changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • subversion-plugin
    • Jenkins 1.487
      Windows Server 2008 R2 x64
      Tomcat 7.0.30
      Java 1.6.0_35

      I've configured my build to poll a svn repo every minute (* * * * *), and the polling works fine, but what's strange is that the build is launched even if there was no change in my SVN repo.

      In the Build Console I can read "no change for https://my.svn.repo/project since the previous build" (see more log below), but Jenkins nevertheless proceeds to building! The attached screenshot shows repeated builds of the same SVN revision.

      This problem surfaced recently, but I'm hazardous to call it a regression: it might be caused by a svn configuration change. I'm also unsure of the impact of the line saying "WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior", could it be the source of my issue?

      Here is the beginning of build log of the third build of svn1705 (#924-svn1705, pictured on the screenshot), for example:

          Started by an SCM change
          Building in workspace C:\.jenkins\workspace\trunk-erw
          Cleaning up C:\.jenkins\workspace\trunk-erw\.
          Deleting C:\.jenkins\workspace\trunk-erw\.\trunk\PS\2spinner\logs
          Deleting C:\.jenkins\workspace\trunk-erw\.\trunk\enovia\WEB-INF\web.xml
          Deleting C:\.jenkins\workspace\trunk-erw\.\trunk\Spinner\2spinner\logs
          Updating https://my.svn.repo/project
          At revision 1705
          WARNING: clock of the subversion server appears to be out of sync. This can result in inconsistent check out behavior.
          no change for https://my.svn.repo/project since the previous build
          [trunk] $ cmd.exe /C '"C:\ant\bin\ant.bat -file build.xml -DjenkinsBuildNumber=924 -DjenkinsBuildNumberPlusSvn=#924-svn1705 PSfullJenkinsDeployWithRestore && exit %%ERRORLEVEL%%"'
          Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre6\lib\tools.jar
          Buildfile: C:\.jenkins\workspace\trunk-erw\trunk\build.xml
          ...
          <build goes on as usual>
      

            Unassigned Unassigned
            ronj Ronan Jouchet
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: