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

Add ability to specify parameters in the crontab

      I was missing the possibility to pass a parameter to a crontab line, so that I can do different things on different days.

      e.g.
      We have a linux that is built every day except Saturdays (~1h) and on Sundays we run a clean build (~10h), where Saturday is reserved for other projects that run a clean build.
      The only way for me was to create a conditional build step. It blows up the job configuration and gets decoupled from the crontab:
      So when someone changes the crontab from Sunday to Saturday for clean builds, he will also have to change the day in the conditional build step.

      My proposal is to extend the crontab syntax by something like:

      MIN HOUR DOM MONTH DOW % PARAM1=VALUE1,PARAM2=VALUE2

      This would than schedule a build with the given parameters.

      Would others be interested too?

          [JENKINS-16352] Add ability to specify parameters in the crontab

          Florin Hillebrand created issue -
          Florin Hillebrand made changes -
          Summary Original: Cron TimerTrigger with parameters New: Add ability to specify parameters in the crontab
          Jesse Glick made changes -
          Labels Original: Parameter TimerTrigger, New: Parameter cron
          Daniel Beck made changes -
          Issue Type Original: Improvement [ 4 ] New: New Feature [ 2 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 147170 ] New: JNJira + In-Review [ 176832 ]
          Baptiste Mathus made changes -
          Assignee New: Baptiste Mathus [ batmat ]
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Bassam Khouri made changes -
          Attachment New: Screen Shot 2018-09-14 at 11.07.22 AM.png [ 44496 ]
          Baptiste Mathus made changes -
          Component/s New: parameterized-remote-trigger-plugin [ 18159 ]
          Component/s Original: core [ 15593 ]
          Baptiste Mathus made changes -
          Component/s New: parameterized-scheduler-plugin [ 21025 ]
          Component/s Original: parameterized-remote-trigger-plugin [ 18159 ]

            batmat Baptiste Mathus
            flozzone Florin Hillebrand
            Votes:
            18 Vote for this issue
            Watchers:
            29 Start watching this issue

              Created:
              Updated:
              Resolved: