[devel at bb.net] Setting BooleanParameter in HTTP POST request
Aakash Jain
aj355 at cornell.edu
Wed Mar 14 04:17:45 UTC 2018
Hello,
I am trying to schedule builds using HTTP POST (as per
http://docs.buildbot.net/latest/developer/rest.html#controlling). It is
working fine except that in the properties, I am not able to set the value
for a scheduler parameter which is of the type BooleanParameter (
https://docs.buildbot.net/current/manual/cfg-schedulers.html#booleanparameter).
How do I specify the value for the variable of type BooleanParameter in my
HTTP POST request?
e.g.:
"run-custom-tests" is BooleanParameter i want to set to True. Following
doesn't set "run-custom-tests" variable:
curl --data '{"id": 97, "jsonrpc": "2.0", "method": "force", "params":
{"revision": "229356", *"checkbox": "run-custom-tests"*}'
http://build.example.org/api/v2/forceschedulers/force-trunk-tester --header
"Content-Type:application/json"
curl --data '{"id": 97, "jsonrpc": "2.0", "method": "force", "params":
{"revision": "229356", *"run-custom-tests": "true"*}'
http://build.example.org/api/v2/forceschedulers/force-trunk-tester --header
"Content-Type:application/json"
Thanks
Aakash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildbot.net/pipermail/devel/attachments/20180313/55f1a4a3/attachment.html>
More information about the devel
mailing list