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

Poll SCM not working

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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

        Attachments

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

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          This is not a valid polling schedule.

          Has nothing to do with the Poll SCM Plugin.

          Show
          danielbeck Daniel Beck added a comment - This is not a valid polling schedule. Has nothing to do with the Poll SCM Plugin.
          Hide
          swapnilvkotwal Swapnil Kotwal added a comment - - edited

          H 0 * * *

          H 7 * * *

          aren't valid schedules?

          Show
          swapnilvkotwal Swapnil Kotwal added a comment - - edited H 0 * * * H 7 * * * aren't valid schedules?
          Hide
          danielbeck 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.

          Show
          danielbeck 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.
          Hide
          swapnilvkotwal 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 
          Show
          swapnilvkotwal 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
          Hide
          swapnilvkotwal Swapnil Kotwal added a comment -

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

          Show
          swapnilvkotwal Swapnil Kotwal added a comment - Look like this is happening due to clock difference between slave and master.
          Hide
          danielbeck Daniel Beck added a comment -

          Please just set up the correct logger.

          Show
          danielbeck Daniel Beck added a comment - Please just set up the correct logger.
          Hide
          swapnilvkotwal 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
          
          Show
          swapnilvkotwal 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

            People

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

              Dates

              Created:
              Updated: