Is it possible to pass parameters as a string, something like below?
properties([
cronStr = "/3 * * * *"
pipelineTriggers([cron(cronStr)]),
])
Is it possible to pass parameters as a string, something like below?
properties([
cronStr = "/3 * * * *"
pipelineTriggers([cron(cronStr)]),
])
Thanks @K.B., the below worked for me. Issue with scope of the variable.
def cronStr = "/3 * * * *"
properties([
pipelineTriggers([cron(cronStr)]),
])