-
New Feature
-
Resolution: Fixed
-
Minor
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
Summary | Original: Cron TimerTrigger with parameters | New: Add ability to specify parameters in the crontab |
Labels | Original: Parameter TimerTrigger, | New: Parameter cron |
Issue Type | Original: Improvement [ 4 ] | New: New Feature [ 2 ] |
Workflow | Original: JNJira [ 147170 ] | New: JNJira + In-Review [ 176832 ] |
Assignee | New: Baptiste Mathus [ batmat ] | |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Attachment | New: Screen Shot 2018-09-14 at 11.07.22 AM.png [ 44496 ] |
Component/s | New: parameterized-remote-trigger-plugin [ 18159 ] | |
Component/s | Original: core [ 15593 ] |
Component/s | New: parameterized-scheduler-plugin [ 21025 ] | |
Component/s | Original: parameterized-remote-trigger-plugin [ 18159 ] |