[JIRA] [core] (JENKINS-22029) Build period cannot span midnight

2014-03-06 Thread [email protected] (JIRA)














































Jerzy Zagorski
 commented on  JENKINS-22029


Build period cannot span midnight















Hi, maybe you can split it into two time spans:

"H H(22-23)/2,H(0-6)/2 * * *"



























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


[JIRA] [core] (JENKINS-22029) Build period cannot span midnight

2014-03-04 Thread [email protected] (JIRA)














































Thomas Diesler
 created  JENKINS-22029


Build period cannot span midnight















Issue Type:


Bug



Assignee:


Unassigned


Components:


core



Created:


04/Mar/14 8:15 AM



Description:


It is possible to define a build period of "every two hours between 6h and 22h" like this 


H H(6-22)/2 * * *


but not like this


H H(22-6)/2 * * *


Generally, periods crossing the day boundary seem to lead to 


Caused by: antlr.ANTLRException: Invalid input: "H H(22-6)/2 * * *": line 1:11: 2 is an invalid value. Must be within 1 and -15
	at hudson.scheduler.CronTabList.create(CronTabList.java:87)
	at hudson.scheduler.CronTabList.create(CronTabList.java:73)
	at hudson.triggers.Trigger.(Trigger.java:157)
	at hudson.triggers.TimerTrigger.(TimerTrigger.java:48)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:447)
	... 87 more
Caused by: line 1:11: 2 is an invalid value. Must be within 1 and -15
	at hudson.scheduler.BaseParser.error(BaseParser.java:131)
	at hudson.scheduler.BaseParser.doHash(BaseParser.java:104)
	at hudson.scheduler.CrontabParser.term(CrontabParser.java:348)
	at hudson.scheduler.CrontabParser.expr(CrontabParser.java:180)
	at hudson.scheduler.CrontabParser.startRule(CrontabParser.java:60)
	at hudson.scheduler.CronTab.set(CronTab.java:93)
	at hudson.scheduler.CronTab.(CronTab.java:83)
	at hudson.scheduler.CronTabList.create(CronTabList.java:85)





Project:


Jenkins



Priority:


Major



Reporter:


Thomas Diesler

























This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira







-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.