Issue Type: Bug 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.<init>(Trigger.java:157)
	at hudson.triggers.TimerTrigger.<init>(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.<init>(CronTab.java:83)
	at hudson.scheduler.CronTabList.create(CronTabList.java:85)
Project: Jenkins
Priority: Major 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.

Reply via email to