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

Mercurial Plugin does not support SCM polling on slaves

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • mercurial-plugin
    • None
    • Windows 7 32bit

      Using 1.433 of Jenkins, 1.37 of plugin.

      Windows 7 32bit master jenkins install. Windows 7 32bit slave jenkins install, launched by manually running JNLP from the slave. Created job in Jenkins which is associated to only run on the slave. The job is configured with a Mercurial repository. If I configure the job to trigger based on SCM changes, I get this in the Mercurial polling log:

      Started on Oct 5, 2011 9:26:37 AM
      No workspace is available, so can't check for updates.
      Done. Took 3 ms
      No changes

      The job has previously run fine and the workspace exists on the slave. The job is configured to download the repository with a subdirectory called 'source' in the workspace. The Remote FS Root on the slave is set to:

      c:\jenkins\jobs

      The workspace for the job exists as:

      c:\jenkins\jobs\workspace\<job name>\source

          [JENKINS-11222] Mercurial Plugin does not support SCM polling on slaves

          davidmc24 added a comment -

          It sounds to me like this is actually an issue with Jenkins core, not the mercurial plugin. When a job is tied to a particular slave and configured to use an SCM that requires a workspace for polling, Jenkins currently assumes that if the workspace doesn't exist, it should just wait for it to exist. While the description of this issue says that the workspace exists, the output ("No workspace is available, so can't check for updates.") seems to indicate that Jenkins thinks the workspace doesn't exist.

          My suggestion would be to manually trigger the build by clicking "Build Now", and see if polling works after that.

          https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/AbstractProject.java#L1282

          davidmc24 added a comment - It sounds to me like this is actually an issue with Jenkins core, not the mercurial plugin. When a job is tied to a particular slave and configured to use an SCM that requires a workspace for polling, Jenkins currently assumes that if the workspace doesn't exist, it should just wait for it to exist. While the description of this issue says that the workspace exists, the output ("No workspace is available, so can't check for updates.") seems to indicate that Jenkins thinks the workspace doesn't exist. My suggestion would be to manually trigger the build by clicking "Build Now", and see if polling works after that. https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/model/AbstractProject.java#L1282

          Thanks - we have tried that with no change to the results. Sorry, I probably wasn't real clear in my original description. By "The job has previously run fine..." I was referring to manual runs. The path specified after "The workspace for the job exists as" was created by these manual runs.

          Britain Crooker added a comment - Thanks - we have tried that with no change to the results. Sorry, I probably wasn't real clear in my original description. By "The job has previously run fine..." I was referring to manual runs. The path specified after "The workspace for the job exists as" was created by these manual runs.

          Today I reproduced the problem using Ubuntu 10.4, Tomcat 6, Jenkins ver. 1.452.

          If I select to it run every minute (periodical execution) it runs with no problems. If I select to poll, it never runs.

          Guillermo Schwarz added a comment - Today I reproduced the problem using Ubuntu 10.4, Tomcat 6, Jenkins ver. 1.452. If I select to it run every minute (periodical execution) it runs with no problems. If I select to poll, it never runs.

            kohsuke Kohsuke Kawaguchi
            bcrooker Britain Crooker
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: