Trigger hourly build from scripted Jenkinsfile
问题 Is there a way to trigger a Jenkins job to run every hour using the Jenkinsfile scripted pipeline syntax? I have seen examples using the declarative syntax, but none using the pipeline syntax. Declarative Syntax Example pipeline { agent any triggers { cron '@daily' } ... } 回答1: You could use this snippet for Scripted pipeline syntax : properties( [ ... , // other properties that you have pipelineTriggers([cron('0 * * * *')]), ] ) Reference for properties is here. You can search for