parameterized-scheduler icon indicating copy to clipboard operation
parameterized-scheduler copied to clipboard

Unable to use space in options

Open fenchu opened this issue 7 years ago • 1 comments

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

fenchu avatar Apr 06 '18 15:04 fenchu

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

falanger avatar Aug 30 '21 12:08 falanger