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

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

    XMLWordPrintable

    Details

    • Similar Issues:
    • Released As:
      0.3.1

      Description

      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.

       

        Attachments

          Activity

          Hide
          svenschoenung 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.

          Show
          svenschoenung 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.

            People

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

              Dates

              Created:
              Updated:
              Resolved: