interface Schedule {
    branchFilters?: string[];
    daysToBuild?: ScheduleDays;
    scheduleJobId?: string;
    scheduleOnlyWithChanges?: boolean;
    startHours?: number;
    startMinutes?: number;
    timeZoneId?: string;
}

Properties

branchFilters?: string[]
daysToBuild?: ScheduleDays

Days for a build (flags enum for days of the week)

scheduleJobId?: string

The Job Id of the Scheduled job that will queue the scheduled build. Since a single trigger can have multiple schedules and we want a single job to process a single schedule (since each schedule has a list of branches to build), the schedule itself needs to define the Job Id. This value will be filled in when a definition is added or updated. The UI does not provide it or use it.

scheduleOnlyWithChanges?: boolean

Flag to determine if this schedule should only build if the associated source has been changed.

startHours?: number

Local timezone hour to start

startMinutes?: number

Local timezone minute to start

timeZoneId?: string

Time zone of the build schedule (String representation of the time zone ID)