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

periodic trigger always results in 1 minute

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • job-dsl-plugin
    • None

    Description

      No matter the value passed in to a periodic trigger, it results in a period of 1 minute. (also noted in JENKINS-54877)

      I suspect the hard-coded cron spec here is the culprit: https://github.com/jenkinsci/job-dsl-plugin/blob/45052e1545c4c30496cfdda1943a1d7eac998ccc/job-dsl-core/src/main/groovy/javaposse/jobdsl/dsl/helpers/triggers/MultibranchWorkflowTriggerContext.groovy#L20

      Note that the trigger class itself actually does some comparison of the values to generate a roughly right cron spec: https://github.com/jenkinsci/cloudbees-folder-plugin/blob/master/src/main/java/com/cloudbees/hudson/plugins/folder/computed/PeriodicFolderTrigger.java

      Attachments

        Issue Links

          Activity

            People

              gpaciga Gregory Paciga
              seadub Chris Williams
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: