From 98c32d8510622ceadf9ece2f400459e678bac477 Mon Sep 17 00:00:00 2001 From: Devon Lehman Date: Mon, 23 Sep 2019 15:13:58 -0400 Subject: [PATCH 1/2] Add example of how to set a parameterizedCron from pipeline-as-code Hopefully will save someone the hours I lost trying to figure this out. --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 753f67e..7e2369c 100644 --- a/README.md +++ b/README.md @@ -85,3 +85,18 @@ Example Output in Jenkins ========================= ![Example Output in Jenkins](https://raw.githubusercontent.com/jenkinsci/parameterized-scheduler-plugin/master/site/images/scheduledBuilds.PNG) + +## Pipeline as code example + +``` +properties( + parameters([ + string(name: 'PLANET', defaultValue: 'Earth', description: 'Which planet are we on?'), + string(name: 'GREETING', defaultValue: 'Hello', description: 'How shall we greet?') + ]), + pipelineTriggers([ + parameterizedCron('*/2 * * * * %GREETING=Hola;PLANET=Pluto'), + parameterizedCron('*/3 * * * * %PLANET=Mars') + ]) +) +``` From 5c41a60598708274dc06261bc9bcd9f9faab001f Mon Sep 17 00:00:00 2001 From: Raihaan Shouhell Date: Mon, 21 Dec 2020 01:51:46 +0800 Subject: [PATCH 2/2] Use widely documented terminology --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7e2369c..5df70e3 100644 --- a/README.md +++ b/README.md @@ -86,7 +86,7 @@ Example Output in Jenkins ![Example Output in Jenkins](https://raw.githubusercontent.com/jenkinsci/parameterized-scheduler-plugin/master/site/images/scheduledBuilds.PNG) -## Pipeline as code example +## Scripted Pipeline Example ``` properties(