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

Polling fails in "node on demand" environments

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major Major
    • p4-plugin
    • None
    • Jenkins version 1.575
      P4 plugin version 1.0.12

      When you restrict your project to run against a specific label and all the nodes in that label are setup to go online/offline on demand, the polling log contains the following when all nodes are offline:

      Perforce Software Polling Log

      Started on Sep 5, 2014 2:49:00 AM
      We need to schedule a new build to get a workspace, but deferring 1,229,335ms in the hope that one will become available soon (all_suitable_nodes_are_offline)
      Done. Took 0.17 sec
      No changes

      I'm guessing this meaning that the polling was not done. Right?

          [JENKINS-24604] Polling fails in "node on demand" environments

          Michael Rose added a comment -

          Hi ewiltshi,

          Yes, manual triggers do work.

          Version information:
          Jenkins version 1.575
          P4 plugin version 1.0.12

          Thanks
          Michael

          Michael Rose added a comment - Hi ewiltshi , Yes, manual triggers do work. Version information: Jenkins version 1.575 P4 plugin version 1.0.12 Thanks Michael

          Hi Michael,

          Thanks for checking those for me. It looks like this issue is with the Jenkins core, and not the Perforce plugin itself, based on your version information and this related (grandparent) ticket: https://issues.jenkins-ci.org/browse/JENKINS-22750

          There are a couple workarounds suggested there, which I hope will be of some help.

          -e.

          Elliot Wiltshire added a comment - Hi Michael, Thanks for checking those for me. It looks like this issue is with the Jenkins core, and not the Perforce plugin itself, based on your version information and this related (grandparent) ticket: https://issues.jenkins-ci.org/browse/JENKINS-22750 There are a couple workarounds suggested there, which I hope will be of some help. -e.

          Not a defect in the Perforce plugin - this looks like it's an issue with the Jenkins core.

          Elliot Wiltshire added a comment - Not a defect in the Perforce plugin - this looks like it's an issue with the Jenkins core.

          Michael Rose added a comment -

          The issue you referenced say the problem was resolved in 1.565, but I'm running 1.575 and still seeing it. I'm guessing this b/c the Perforce plugin does use a workspace when polling which they said they weren't going to address. So basically (if I'm summarizing that issue right) Perforce polling will not work for a completely node on demand environment, I have to keep atleast one node running at all times.

          Michael Rose added a comment - The issue you referenced say the problem was resolved in 1.565, but I'm running 1.575 and still seeing it. I'm guessing this b/c the Perforce plugin does use a workspace when polling which they said they weren't going to address. So basically (if I'm summarizing that issue right) Perforce polling will not work for a completely node on demand environment, I have to keep atleast one node running at all times.

          Although I do think this is related to the Jenkins core, and not the Perforce plugin itself, I'm re-opening this and will discuss with other developers. There may be a way to do an SCM poll without a workspace.

          Elliot Wiltshire added a comment - Although I do think this is related to the Jenkins core, and not the Perforce plugin itself, I'm re-opening this and will discuss with other developers. There may be a way to do an SCM poll without a workspace.

          Michael Rose added a comment -

          Thanks!

          Michael Rose added a comment - Thanks!

          Michael Rose added a comment -

          Hi ewiltshi

          Could you also take a look at JENKINS-24028 since p4paul is OOO? It is blocking me from migrating our project to the new plugin. Most of our projects are matrix based and are parametrized to make it easier to create similar projects for different branches.

          Thanks
          Michael

          Michael Rose added a comment - Hi ewiltshi Could you also take a look at JENKINS-24028 since p4paul is OOO? It is blocking me from migrating our project to the new plugin. Most of our projects are matrix based and are parametrized to make it easier to create similar projects for different branches. Thanks Michael

          Paul Allen added a comment -

          Old Issue

          Paul Allen added a comment - Old Issue

          Is this bug fixed (in what version), or won't fix because it's a jenkins core issue?

          In reviewing the referenced bugs, it appears to be the latter. Please confirm.

          Chris Steinbroner added a comment - Is this bug fixed (in what version), or won't fix because it's a jenkins core issue? In reviewing the referenced bugs, it appears to be the latter. Please confirm.

          Paul Allen added a comment -

          Sorry should have been 'Won't Fix' as it's a Jenkins core issue.

          I could change the location of the polling to use the master, but that would be a new feature.

          Paul Allen added a comment - Sorry should have been 'Won't Fix' as it's a Jenkins core issue. I could change the location of the polling to use the master, but that would be a new feature.

            p4paul Paul Allen
            mrose Michael Rose
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: