Given i.e. this code::
...
List<String> arguments = new LinkedList<String>();
arguments.add("build");
arguments.add(projectName);
arguments.add("-s");
arguments.add("-v");
CLI cli = new CLI(new URL(url));
cli.upgrade();
int exit_code = cli.execute(arguments);
...
how can I specify build parameters for a parametrized jenkins build?
adding i.e. arguments.add("-p options.properties=system.props"); to the list doesn't work /message is '
-p options.properties=system.props is not a valid option
'/
What I am trying to achieve above works fine from command line :::
java -jar jenkins-cli.jar -s http://localhost:8080/jenkins build mvn_project01 -p options.properties=system.props