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

SCM polling always fails using Perforce plugin due to "workspace offline" and causes infinite build loop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • p4-plugin
    • None

      1. Set up an "in demand" slave.
      2. Set up a project that only builds on that slave
      3. The slave will go offline
      4. The SCM poll will see that the workspace is offline and trigger a new build
      5. The slave comes online, the build completes
      6. The slave goes back offline again as in 3.
      7. And here the infinite build loop happens since we now send up back at 4

      I'm not sure why Hudson is trying to get the content of the workspace? The perforce plugin knows the last change list number used for the last build, so it should also know by polling perforce that the last changlist number is different and so a build should be triggered?

      In our environment each slave is actually a virtual machine controlled by scripts, after a build completes its taken offline so checking the workspace will NEVER work. This completely breaks our setup because builds are only set to trigger for SCM changes.

      When a slave is brought back online the VM is reverted to its snapshot to ensure the build is "clean", so again this means checking the workspace content will always fail.

            rpetti Rob Petti
            paulmoran paulmoran
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: