When a scheduled trigger is defined, the ScheduledTriggerReason.scheduledDate
metadata is same as the buildTimeStamp
metadata.
How can we retrieve the scheduled date that matched our defined cron expressions?
Sometimes they are quite different:
- scheduled date that matched our defined cron expression: 2023-01-04 13:30
-
ScheduledTriggerReason.scheduledDate
metadata: 2023-01-04 13:37
From Bamboo log, in fact, we notice scheduled build has been triggered 7 minutes late:
2023-01-04 13:30:00,004 INFO [scheduler_Worker-3] [QuartzTriggerJob] Running quartz strategy job for CHAIN:DAT-DATAFIXSCHED
2023-01-04 13:37:09,712 INFO [10-BAM::PlanExec:pool-12-thread-4] [ScheduledBuildDetectionAction] Detecting changes for DAT-DATAFIXSCHED...
2023-01-04 13:37:09,717 INFO [10-BAM::PlanExec:pool-12-thread-4] [ScheduledBuildDetectionAction] : Schedule build DAT-DATAFIXSCHED-3061 triggered
Thanks in advance.
Cheers.