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

URL SCM always marks URL as changed with Poll SCM option

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • urlscm-plugin
    • None
    • Scientific Linux 5.5
      Architecture x86_64
      Running Jenkins in standalone mode with Winstone

      The URL SCM always triggers a build when using the SCP polling option. The Polling Log only contains the following:
      Started on Apr 4, 2013 5:32:41 PM
      Done. Took 1 ms
      Changes found

      Thus the URL seems to always be marked by the URL plugin as changed, even when no changes have been made.

          [JENKINS-17479] URL SCM always marks URL as changed with Poll SCM option

          mdonohue added a comment -

          URLSCM checks the last-modified time returned by the web server. If the web server always returns a different last-modified time, then you will see the behavior described.

          mdonohue added a comment - URLSCM checks the last-modified time returned by the web server. If the web server always returns a different last-modified time, then you will see the behavior described.

          Artur Szostak added a comment -

          This happens even when I use HTTP URLs to Jenkins' workspaces, HTTP URLs for lighttpd or FTP URLs for vsftpd. Thats 3 different servers. Seems unlikely that its due to the server. Can you suggest a conclusive way to check?

          Artur Szostak added a comment - This happens even when I use HTTP URLs to Jenkins' workspaces, HTTP URLs for lighttpd or FTP URLs for vsftpd. Thats 3 different servers. Seems unlikely that its due to the server. Can you suggest a conclusive way to check?

          Artur Szostak added a comment -

          I tried on a different installation of Jenkins (1.480.3 on Ubuntu) and have the same problem.
          Looking at the file timestamps returned by the FTP server, they do not change.

          Artur Szostak added a comment - I tried on a different installation of Jenkins (1.480.3 on Ubuntu) and have the same problem. Looking at the file timestamps returned by the FTP server, they do not change.

          Bahy Mehany added a comment -

          I am having the same issue. It seems like the last-modified time isn't being checked. Please re-visit this issue.

          On multiple consecutive builds, I check the URL Modification Dates and get the following each time:

          Last-Modified: 10/17/13 6:48 AM

          Although the URL Modification Dates are the same, the Polling Log reads:

          Started on Oct 17, 2013 8:21:37 AM
          Done. Took 0 ms
          Changes found

          Bahy Mehany added a comment - I am having the same issue. It seems like the last-modified time isn't being checked. Please re-visit this issue. On multiple consecutive builds, I check the URL Modification Dates and get the following each time: Last-Modified: 10/17/13 6:48 AM Although the URL Modification Dates are the same, the Polling Log reads: Started on Oct 17, 2013 8:21:37 AM Done. Took 0 ms Changes found

            mdonohue mdonohue
            aszostak Artur Szostak
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: