Hi
You can use the pre-processor to do this
http://www.cruisecontrolnet.org/projects/ccnet/wiki/Configuration_Preprocessor
somewhere at the top of the config, above all projects
<cb:define name="DaystoRun">
<weekDays>
<weekday>monday</weekday>
<weekday>tuesday</weekday>
<weekday>wednesday</weekday>
<weekday>thursday</weekday>
<weekday>friday</weekday>
</weekDays>
</cb:define>
in a project :
<triggers>
<scheduleTrigger time="7:30" buildCondition="forcebuild"
name="scheduled"><cb:DaystoRun></scheduleTrigger>
<scheduleTrigger time="9:30" buildCondition="forcebuild"
name="scheduled"><cb:DaystoRun></scheduleTrigger>
<scheduleTrigger time="11:30" buildCondition="forcebuild"
name="scheduled"><cb:DaystoRun></scheduleTrigger>
<scheduleTrigger time="13:30" buildCondition="forcebuild"
name="scheduled"><cb:DaystoRun></scheduleTrigger>
<scheduleTrigger time="15:30" buildCondition="forcebuild"
name="scheduled"><cb:DaystoRun></scheduleTrigger>
<scheduleTrigger time="17:30" buildCondition="forcebuild"
name="scheduled"><cb:DaystoRun></scheduleTrigger>
</triggers>
so the 47 pages would be reduced to about 6 lines
with kind regards
Ruben Willems
On 28 November 2013 01:16, Hidden View <[email protected]> wrote:
> Goal: Have a project that runs at 7:30 AM and every 2 hours there after
> until 5:30 PM, M-F
>
> Currently, I'm using the below format. I omitted the remaining
> scheduleTriggers as it just takes up extra space on this post. The
> remaining scheduleTriggers are identical, it's just that this syntax is
> extremely long. I'd like to shorten the trigger list so it doesn't take up
> 47 pages.
>
> <triggers>
>> <scheduleTrigger time="7:30" buildCondition="forcebuild"
>> name="scheduled">
>> <weekDays>
>> <weekday>monday</weekday>
>> <weekday>tuesday</weekday>
>> <weekday>wednesday</weekday>
>> <weekday>thursday</weekday>
>> <weekday>friday</weekday>
>> </weekDays>
>> </scheduleTrigger>
>>
>> <scheduleTrigger time="9:30" buildCondition="forcebuild"
>> name="scheduled">
>> <weekDays>
>> <weekday>monday</weekday>
>> <weekday>tuesday</weekday>
>> <weekday>wednesday</weekday>
>> <weekday>thursday</weekday>
>> <weekday>friday</weekday>
>> </weekDays>
>> </scheduleTrigger>
>>
>> <scheduleTrigger time="11:30" buildCondition="forcebuild"
>> name="scheduled">
>> <weekDays>
>> <weekday>monday</weekday>
>> <weekday>tuesday</weekday>
>> <weekday>wednesday</weekday>
>> <weekday>thursday</weekday>
>> <weekday>friday</weekday>
>> </weekDays>
>> </scheduleTrigger>
>> </triggers>
>>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "ccnet-user" 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.
>
--
---
You received this message because you are subscribed to the Google Groups
"ccnet-user" 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.