| Ha, good catch! I will enable Dynamic DSL for computed folder triggers with the next release. Then the following will work:
organizationFolder('example') {
triggers {
periodicFolderTrigger {
interval('5m') // or '2h', '7d', '5000ms', '60s'
}
}
}
I will deprecate the existing periodic method in favor of the Dynamic DSL. I do not want to add any logic to Job DSL to compute the cron string nor should a user have to specify both, the cron string and the interval. |