This PR complements the previous PR #53. Since PLUGIN_INFO is maintained through the workflow scripts as a JSON-serializable object, call_jenkins needs to also support JSON objects, which are slightly different than native Python dictionaries. This PR achieves this by allowing plugin_info to be a string, and if so parses it using json.loads.
This PR complements the previous PR #53. Since PLUGIN_INFO is maintained through the workflow scripts as a JSON-serializable object,
call_jenkins
needs to also support JSON objects, which are slightly different than native Python dictionaries. This PR achieves this by allowingplugin_info
to be a string, and if so parses it usingjson.loads
.