You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Jenkins Plugin to support setting parameters in the build schedule. Using multiple cron lines each ending with a % and some name=value pairs you can schedule your parameterized build to run with different parameters at different times.
7
+
A Jenkins Plugin to support setting parameters in the build schedule. Using multiple cron lines each ending with a `%` and some `name=value` pairs you can schedule your parameterized build to run with different parameters at different times.
9
8
10
-
## Installation ##
11
-
To install this plugin follow the [Jenkins Plugin installation instructions](https://www.jenkins.io/doc/book/managing/plugins/)
9
+
## Installation
12
10
13
-
## Configuration ##
11
+
To install this plugin follow the [Jenkins Plugin installation instructions](https://www.jenkins.io/doc/book/managing/plugins/).
12
+
13
+
## Configuration
14
14
15
15
After you save your project with some parameters (yes, save, then go back into the config page) you will see
16
16
>Build periodically with parameters
@@ -19,19 +19,19 @@ in the *Build Triggers* section as shown here:
The cron line before the _%_ symbol is processed the same as the jenkins core _Build periodically Schedule_. Leave a space. Put in a _%_. Then add the name=value pairs you need for your project build parameters.
22
+
## Configuration Example
23
+
24
+
The cron line before the `%` symbol is processed the same as the jenkins core _Build periodically Schedule_. Leave a space. Put in a `%`. Then add the `name=value` pairs you need for your project build parameters.
24
25
25
-
The idea was born from the need to use a different environment. To use a different TestNG configuration xml. In this example the _env_ parameter will be set to int during the build triggered at 15 after each hour. Then _env_ will be qa when the build runs at half past.
26
+
The idea was born from the need to use a different environment. To use a different TestNG configuration xml. In this example the `env` parameter will be set to int during the build triggered at 15 after each hour. Then `env` will be qa when the build runs at half past.
26
27
27
28
```
28
-
#lets run against the integration environment at 15 past the hour
29
-
15 * * * * %env=int
30
-
#run QA too
31
-
30 * * * % env=qa
29
+
# lets run against the integration environment at 15 past the hour
30
+
15 * * * * %env=int
31
+
# run QA too
32
+
30 * * * * %%env=qa
32
33
```
33
34
34
-
35
35
Yes, of course you can set multiple parameters. Lets say you have three parameters:
36
36
- furniture
37
37
- color
@@ -40,14 +40,14 @@ Yes, of course you can set multiple parameters. Lets say you have three paramete
40
40
Then you might want a schedule like the following:
41
41
42
42
```
43
-
# leave spaces where you want them around the parameters. They'll be trimmed.
44
-
# we let the build run with the default name
45
-
5 * * * * %furniture=chair;color=black
46
-
# now, let's override that default name and use Mr. Rubble.
The parameterized cron trigger can be specified using the key `parameterizedSpecification` under the `parameterizedCron` under the [triggers directive](https://jenkins.io/doc/book/pipeline/syntax/#declarative-directives). The built in `cron` trigger is still available and is independent of `parameterizedCron`.
53
53
@@ -79,10 +79,9 @@ pipeline {
79
79
}
80
80
```
81
81
82
-
Example Output in Jenkins
83
-
=========================
84
-

82
+
## Example Output in Jenkins
85
83
84
+

Copy file name to clipboardExpand all lines: src/main/resources/org/jenkinsci/plugins/parameterizedscheduler/ParameterizedTimerTrigger/help-parameterizedSpecification.html
+2-1
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,8 @@
27
27
<pre>
28
28
# every fifteen minutes (perhaps at :07, :22, :37, :52)
29
29
H/15 * * * * %name=value
30
+
30
31
# every ten minutes in the first half of every hour (three times, perhaps at :04, :14, :24)
0 commit comments