Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot use "=" in parameter values #10

Open
qwrrty opened this issue Oct 9, 2018 · 0 comments · Fixed by jenkinsci/parameterized-scheduler-plugin#52
Open

cannot use "=" in parameter values #10

qwrrty opened this issue Oct 9, 2018 · 0 comments · Fixed by jenkinsci/parameterized-scheduler-plugin#52

Comments

@qwrrty
Copy link

qwrrty commented Oct 9, 2018

The plugin will not accept a parameter that has a value containing an = character. For example, if you attempt to pass the SETTINGS parameter with a value of foobar=true, like so:

H 8 * * * % SETTINGS=foobar=true

then Jenkins will raise an exception when trying to save the job configuration:

java.lang.IllegalArgumentException: Chunk [SETTINGS=foobar=true] is not a valid entry
	at com.google.common.base.Preconditions.checkArgument(Preconditions.java:115)
	at com.google.common.base.Splitter$MapSplitter.split(Splitter.java:456)
	at org.jenkinsci.plugins.parameterizedscheduler.ParameterParser.parse(ParameterParser.java:37)

There is one potential workaround using the limit method, described at the google/guava#1900 issue. I found another suggestion, using regexes, at https://stackoverflow.com/a/44685466/1843465. I don't know the Splitter code well enough to suggest one or the other.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant