We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
can't submit jobs to jenkins if parameters have '=' in them e.g. JOB_PARAM="USER=damien DESTDIR=/tmp/$BUILDNUM"
JOB_PARAM="USER=damien DESTDIR=/tmp/$BUILDNUM"
here is my testcase:
import org.kohsuke.args4j.Argument; import org.kohsuke.args4j.CmdLineException; import org.kohsuke.args4j.CmdLineParser; import org.kohsuke.args4j.Option; import org.kohsuke.args4j.spi.BooleanOptionHandler; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.Map.Entry; import java.util.Map; import java.util.HashMap; public class SampleMain { @Option(name="-p",usage="Specify the build parameters in the key=value format.") Map<String,String> parameters = new HashMap<String, String>(); } def test(String[] args) { println("test with args: " + args) main = new SampleMain() CmdLineParser parser = new CmdLineParser(main); parser.parseArgument(args) for (Entry<String, String> e : main.parameters.entrySet()) { String name = e.getKey(); String value = e.getValue(); println(name + ' := ' + value); } } test('-p', 'key=value') test('-p', 'equal="i love = signs"')
here is the result:
Result test with args: [-p, key=value] key := value test with args: [-p, equal="i love = signs"] equal := "i love
maybe related to issue #72, maybe not.
The text was updated successfully, but these errors were encountered:
note, testcase is in groovy, I used that in the jenkins script console.
Sorry, something went wrong.
add testcase for issue kohsuke#87
748351b
Merge pull request #88 from dnozay/testcase87
9568534
add testcase for issue #87
36efe27
Merge pull request kohsuke#88 from dnozay/testcase87
d8996d3
No branches or pull requests
can't submit jobs to jenkins if parameters have '=' in them
e.g.
JOB_PARAM="USER=damien DESTDIR=/tmp/$BUILDNUM"
here is my testcase:
here is the result:
maybe related to issue #72, maybe not.
The text was updated successfully, but these errors were encountered: