• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • core
    • Win Server 2008 R2 Enterprise,
      Jenkins version 1.610

      I have set Poll SM schedule as

      H 0 * * * 

      OR

      H/24 7 * * *

      OR

      H 14 * * * 

      etc

      But, Jenkins simply ignoring it and my Jobs which was executing previously not working now

        1. Capture.PNG
          Capture.PNG
          38 kB
        2. Capture.PNG
          Capture.PNG
          51 kB
        3. Capture.PNG
          Capture.PNG
          51 kB
        4. Test.xml
          1 kB

          [JENKINS-28099] Poll SCM not working

          Daniel Beck added a comment -

          This is not a valid polling schedule.

          Has nothing to do with the Poll SCM Plugin.

          Daniel Beck added a comment - This is not a valid polling schedule. Has nothing to do with the Poll SCM Plugin.

          Swapnil Kotwal added a comment - - edited

          H 0 * * *

          H 7 * * *

          aren't valid schedules?

          Swapnil Kotwal added a comment - - edited H 0 * * * H 7 * * * aren't valid schedules?

          Daniel Beck added a comment -

          That's not what you wrote in the issue description. You wrote, formatted to (presumably) represent verbatim input:

          H 0 * * * OR H 7 * * * OR H 14 * * * 

          And that is not valid.

          Please explain what you're doing, in detail (i.e. full step-by-step instructions what you're configuring). Try to find out what conditions need to be met for this to not work. Is it only when you use 'H'? Is it only if the 'H' is on the 'minutes' field? Etc.

          Set up a log recorder for the logger hudson.triggers.SCMTrigger as described on https://wiki.jenkins-ci.org/display/JENKINS/Logging and report its output.

          Daniel Beck added a comment - That's not what you wrote in the issue description. You wrote, formatted to (presumably) represent verbatim input: H 0 * * * OR H 7 * * * OR H 14 * * * And that is not valid. Please explain what you're doing, in detail (i.e. full step-by-step instructions what you're configuring). Try to find out what conditions need to be met for this to not work. Is it only when you use 'H'? Is it only if the 'H' is on the 'minutes' field? Etc. Set up a log recorder for the logger hudson.triggers.SCMTrigger as described on https://wiki.jenkins-ci.org/display/JENKINS/Logging and report its output.

          Swapnil Kotwal added a comment - - edited

          Thanks Daniel for prompt response.

          I'm just printing "Hello World" with scheduling poll (see attached job Test.xml) but it's not honoring the schedule.

          Please help. I didn't get any interesting in logs

           Apr 26, 2015 8:24:05 PM WARNING org.kohsuke.stapler.RequestImpl$TypePair convertJSON
          'stapler-class' is deprecated: hudson.tasks.Ant
          Apr 26, 2015 8:24:05 PM WARNING org.kohsuke.stapler.RequestImpl$TypePair convertJSON
          'stapler-class' is deprecated: hudson.plugins.emailext.ExtendedEmailPublisher
          Apr 26, 2015 8:24:05 PM WARNING org.kohsuke.stapler.RequestImpl$TypePair convertJSON
          'stapler-class' is deprecated: hudson.plugins.emailext.plugins.trigger.AlwaysTrigger
          Apr 26, 2015 8:29:29 PM WARNING org.kohsuke.stapler.RequestImpl$TypePair convertJSON
          'stapler-class' is deprecated: hudson.security.HudsonPrivateSecurityRealm
          Apr 26, 2015 8:29:29 PM INFO org.springframework.web.context.support.StaticWebApplicationContext prepareRefresh
          Refreshing org.springframework.web.context.support.StaticWebApplicationContext@54f4e0: display name [Root WebApplicationContext]; startup date [Sun Apr 26 20:29:29 IST 2015]; root of context hierarchy
          Apr 26, 2015 8:29:29 PM INFO org.springframework.web.context.support.StaticWebApplicationContext obtainFreshBeanFactory
          Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@54f4e0]: org.springframework.beans.factory.support.DefaultListableBeanFactory@177c770
          Apr 26, 2015 8:29:29 PM INFO org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
          Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@177c770: defining beans [authenticationManager]; root of factory hierarchy
          Apr 26, 2015 8:29:29 PM INFO org.springframework.web.context.support.StaticWebApplicationContext prepareRefresh
          Refreshing org.springframework.web.context.support.StaticWebApplicationContext@13ba8f3: display name [Root WebApplicationContext]; startup date [Sun Apr 26 20:29:29 IST 2015]; root of context hierarchy
          Apr 26, 2015 8:29:29 PM INFO org.springframework.web.context.support.StaticWebApplicationContext obtainFreshBeanFactory
          Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@13ba8f3]: org.springframework.beans.factory.support.DefaultListableBeanFactory@5d1119
          Apr 26, 2015 8:29:29 PM INFO org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
          Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5d1119: defining beans [filter,legacy]; root of factory hierarchy
          Apr 26, 2015 8:29:29 PM WARNING org.kohsuke.stapler.RequestImpl$TypePair convertJSON
          'stapler-class' is deprecated: hudson.markup.RawHtmlMarkupFormatter
          Apr 26, 2015 8:31:06 PM INFO hudson.TcpSlaveAgentListener$ConnectionHandler run
          Accepted connection #5 from /172.16.24.2:62764
          Apr 26, 2015 8:38:29 PM INFO hudson.model.AsyncPeriodicWork$1 run
          Started Workspace clean-up
          Apr 26, 2015 8:38:30 PM INFO hudson.model.AsyncPeriodicWork$1 run
          Finished Workspace clean-up. 1,885 ms 

          Swapnil Kotwal added a comment - - edited Thanks Daniel for prompt response. I'm just printing "Hello World" with scheduling poll (see attached job Test.xml) but it's not honoring the schedule. Please help. I didn't get any interesting in logs Apr 26, 2015 8:24:05 PM WARNING org.kohsuke.stapler.RequestImpl$TypePair convertJSON 'stapler-class' is deprecated: hudson.tasks.Ant Apr 26, 2015 8:24:05 PM WARNING org.kohsuke.stapler.RequestImpl$TypePair convertJSON 'stapler-class' is deprecated: hudson.plugins.emailext.ExtendedEmailPublisher Apr 26, 2015 8:24:05 PM WARNING org.kohsuke.stapler.RequestImpl$TypePair convertJSON 'stapler-class' is deprecated: hudson.plugins.emailext.plugins.trigger.AlwaysTrigger Apr 26, 2015 8:29:29 PM WARNING org.kohsuke.stapler.RequestImpl$TypePair convertJSON 'stapler-class' is deprecated: hudson.security.HudsonPrivateSecurityRealm Apr 26, 2015 8:29:29 PM INFO org.springframework.web.context.support.StaticWebApplicationContext prepareRefresh Refreshing org.springframework.web.context.support.StaticWebApplicationContext@54f4e0: display name [Root WebApplicationContext]; startup date [Sun Apr 26 20:29:29 IST 2015]; root of context hierarchy Apr 26, 2015 8:29:29 PM INFO org.springframework.web.context.support.StaticWebApplicationContext obtainFreshBeanFactory Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@54f4e0]: org.springframework.beans.factory.support.DefaultListableBeanFactory@177c770 Apr 26, 2015 8:29:29 PM INFO org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@177c770: defining beans [authenticationManager]; root of factory hierarchy Apr 26, 2015 8:29:29 PM INFO org.springframework.web.context.support.StaticWebApplicationContext prepareRefresh Refreshing org.springframework.web.context.support.StaticWebApplicationContext@13ba8f3: display name [Root WebApplicationContext]; startup date [Sun Apr 26 20:29:29 IST 2015]; root of context hierarchy Apr 26, 2015 8:29:29 PM INFO org.springframework.web.context.support.StaticWebApplicationContext obtainFreshBeanFactory Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@13ba8f3]: org.springframework.beans.factory.support.DefaultListableBeanFactory@5d1119 Apr 26, 2015 8:29:29 PM INFO org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5d1119: defining beans [filter,legacy]; root of factory hierarchy Apr 26, 2015 8:29:29 PM WARNING org.kohsuke.stapler.RequestImpl$TypePair convertJSON 'stapler-class' is deprecated: hudson.markup.RawHtmlMarkupFormatter Apr 26, 2015 8:31:06 PM INFO hudson.TcpSlaveAgentListener$ConnectionHandler run Accepted connection #5 from /172.16.24.2:62764 Apr 26, 2015 8:38:29 PM INFO hudson.model.AsyncPeriodicWork$1 run Started Workspace clean-up Apr 26, 2015 8:38:30 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished Workspace clean-up. 1,885 ms

          Look like this is happening due to clock difference between slave and master.

          Swapnil Kotwal added a comment - Look like this is happening due to clock difference between slave and master.

          Daniel Beck added a comment -

          Please just set up the correct logger.

          Daniel Beck added a comment - Please just set up the correct logger.

          I set logger with following params.

          hudson.triggers.SCMTrigger
          hudson.plugins.git.GitSCM
          hudson.scm.SCMDescriptor
          

          with log level all and set Poll schedule but still I can see following logs

          Apr 30, 2015 11:21:00 AM FINE hudson.triggers.SCMTrigger
          Scheduling a polling for hudson.model.FreeStyleProject@902791[PollSCm]
          Apr 30, 2015 11:21:00 AM FINE hudson.triggers.SCMTrigger
          scheduling the trigger to (asynchronously) run
          Apr 30, 2015 12:11:00 PM FINE hudson.triggers.SCMTrigger
          Scheduling a polling for hudson.model.FreeStyleProject@902791[PollSCm]
          Apr 30, 2015 12:11:00 PM FINE hudson.triggers.SCMTrigger
          scheduling the trigger to (asynchronously) run
          Apr 30, 2015 12:21:00 PM FINE hudson.triggers.SCMTrigger
          Scheduling a polling for hudson.model.FreeStyleProject@902791[PollSCm]
          Apr 30, 2015 12:21:00 PM FINE hudson.triggers.SCMTrigger
          scheduling the trigger to (asynchronously) run
          Apr 30, 2015 12:31:00 PM FINE hudson.triggers.SCMTrigger
          Scheduling a polling for hudson.model.FreeStyleProject@902791[PollSCm]
          Apr 30, 2015 12:31:00 PM FINE hudson.triggers.SCMTrigger
          scheduling the trigger to (asynchronously) run
          

          Swapnil Kotwal added a comment - I set logger with following params. hudson.triggers.SCMTrigger hudson.plugins.git.GitSCM hudson.scm.SCMDescriptor with log level all and set Poll schedule but still I can see following logs Apr 30, 2015 11:21:00 AM FINE hudson.triggers.SCMTrigger Scheduling a polling for hudson.model.FreeStyleProject@902791[PollSCm] Apr 30, 2015 11:21:00 AM FINE hudson.triggers.SCMTrigger scheduling the trigger to (asynchronously) run Apr 30, 2015 12:11:00 PM FINE hudson.triggers.SCMTrigger Scheduling a polling for hudson.model.FreeStyleProject@902791[PollSCm] Apr 30, 2015 12:11:00 PM FINE hudson.triggers.SCMTrigger scheduling the trigger to (asynchronously) run Apr 30, 2015 12:21:00 PM FINE hudson.triggers.SCMTrigger Scheduling a polling for hudson.model.FreeStyleProject@902791[PollSCm] Apr 30, 2015 12:21:00 PM FINE hudson.triggers.SCMTrigger scheduling the trigger to (asynchronously) run Apr 30, 2015 12:31:00 PM FINE hudson.triggers.SCMTrigger Scheduling a polling for hudson.model.FreeStyleProject@902791[PollSCm] Apr 30, 2015 12:31:00 PM FINE hudson.triggers.SCMTrigger scheduling the trigger to (asynchronously) run

            vlatombe Vincent Latombe
            swapnilvkotwal Swapnil Kotwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: