-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
-
0.3.1
Jobs of type WorkflowJob don't extend AbstractProject and therefore don't have a getTriggers() method. That's why scheduled builds for pipeline jobs don't appear.
Plug-in needs to support getting the cron trigger information from the job properties.
Originally reported here.
Fix in 0.3.1.
There's two ways to configure scheduled builds for pipeline jobs:
1. Using the Jenkins UI (as one would for Free Style Jobs)
2. Using triggers:
pipeline { agent any triggers { cron('H */4 * * 1-5') } }
Note that in the second case the job has to be executed once for the cron expression to be picked up.