Skip to content

Commit d746bf3

Browse files
authored
Update README.md (#96)
Scripted pipeline can accept multiple cron expressions if described as declarative pipeline. Using current solution only the last cron entry is being saved
1 parent 84c7f20 commit d746bf3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,10 @@ properties([
9292
string(name: 'GREETING', defaultValue: 'Hello', description: 'How shall we greet?')
9393
]),
9494
pipelineTriggers([
95-
parameterizedCron('*/2 * * * * %GREETING=Hola;PLANET=Pluto'),
96-
parameterizedCron('*/3 * * * * %PLANET=Mars')
95+
parameterizedCron('''
96+
*/2 * * * * %GREETING=Hola;PLANET=Pluto
97+
*/3 * * * * %PLANET=Mars
98+
''')
9799
])
98100
])
99101
```

0 commit comments

Comments
 (0)