jwmach1 / parameterized-scheduler

A Jenkins Plugin to support setting parameters in the build schedule
MIT License
15 stars 52 forks source link

Unable to use space in options #8

Open fenchu opened 6 years ago

fenchu commented 6 years ago

parameterized-scheduler=0.5 jenkins 2.107.1

org.jenkinsci.plugins.parameterizedscheduler.ParameterizedTimerTrigger.run() failed for testapi_events
java.lang.IllegalArgumentException: Illegal choice for parameter HOST: "welfare-qa testapi"

setup is like this:

H 22 * * 1-5 % HOST="welfare-dev testapi"; SITENAME=GX8Autotest30; WAIT=0.5
H 22 * * 1-5 % HOST="welfare-dev testapi"; SITENAME=Institusjon; WAIT=0.5
H 22 * * 1-5 % HOST="welfare-dev testapi"; SITENAME='Sensio Kontor'; WAIT=0.5
H 22 * * 1-5 % HOST="welfare-dev testapi"; SITENAME='Sensio Labs'; WAIT=0.5
H 22 * * 1-5 % HOST="welfare-qa testapi"; SITENAME=GX8AutoTest; WAIT=0.5

Works fine as plain HOST dropdown

falanger commented 3 years ago

If anyone faces the same issue, just remove a quotes from a parameters string. Like that: H 22 * * 1-5 % HOST=welfare-dev testapi; SITENAME=GX8Autotest30; WAIT=0.5