Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53312

Scheduled builds for Pipeline jobs don't appear in Calendar View

    • 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.

       

          [JENKINS-53312] Scheduled builds for Pipeline jobs don't appear in Calendar View

          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.

          Sven Schoenung added a comment - 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.

            svenschoenung Sven Schoenung
            svenschoenung Sven Schoenung
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: