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

After URL content had a change, all of following pollings detect changes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • urltrigger-plugin
    • None
    • URLTrigger 0.8, Jenkins 1.443, Ubuntu 11.10 Server 64bit
      URLTrigger 0.8, Jenkins 1.410, Windows 7 32bit

      1. Create a job which polls with http://localhost/foo.txt and monitors a change of the content.
      2. 1st poll result is "No changes". (expected)
      3. Edit foo.txt on localhost.
      4. 2nd poll result is "There are changes". (expected)
      5. 3rd poll result is "There are changes". (NOT expected)
      6. Go to the job configuration page, and click "save". There is no need to edit the configuration.
      7. 4th poll result is "No changes". (expected)

      If ClientResponse.getEntity is called multiple times,
      its return value will be an empty string.
      A workaround would be https://github.com/ohtake/urltrigger-plugin/commit/f9c3cbde37a7f46e7fa6e14540fa6d0a96312c29.
      It is not a neat commit, but it works for me.

            gbois Gregory Boissinot
            ohtake_tomohiro OHTAKE Tomohiro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: