This issue is archived. You can view it, but you can't modify it. Learn more

ExportXMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Minor
    • Component/s: job-dsl-plugin
    • Environment:
      1: Jenkins 2.98, Job DSL 1.67
      2: Jenkins: 2.112, Job DSL 1.69

      Expected Behavior: The following should create a cron entry in a generated job:

      freeStyleJob('example') {
        triggers {
          cron('@daily')
        }
      }

      Actual Behavior: Job is generated without any cron entry.

      Workaround: The following produces a correctly configured job (has cron entry):

      freeStyleJob('example') {
        triggers {
          cron{
            spec('@daily')
          }
        }   
      }

      At some point prior to the mentioned versions, the first DSL example worked fine (and should still work according to the generated documentation)

      I'm not sure exactly when the old DSL stopped working, but I'm guessing that this was unintentional.

      Note also that my generated documentation has the "spec" closure, while the official documentation does not.

       

            Assignee:
            Daniel Spilker
            Reporter:
            Alexander Komarov
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: