I want to supply both choices and a poll trigger. I've tried a number of attempts, but no avail.
Here is one of my attempts:
properties(
[parameters([choice(choices: 'dev\nprod', description: 'environment to deploy', name: 'DEPLOY_TO')])],
[pipelineTriggers([pollSCM('H/2 * * * *')])]
)
I figured out the proper formatting of the properties block
properties(
[
parameters([choice(choices: 'dev\nprod', description: 'environment to deploy', name: 'DEPLOY_TO')]),
pipelineTriggers([pollSCM('H/2 * * * *')])
]
)
I had the brackets and parens in the wrong places.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With