[snowpatch] [PATCH v2] jenkins: refactor HTTP boilerplate

Russell Currey ruscur at russell.cc
Wed Jun 22 13:26:14 AEST 2016


On Thu, 2016-06-16 at 15:24 +1000, Andrew Donnellan wrote:
> All our side-effect-free Jenkins API calls follow the same pattern of
> creating a hyper Client, making a GET request to the relevant JSON API
> endpoint, and decoding the returned JSON into a JSON Object (right now the
> top-level data types are all Objects). Refactor this boilerplate into a new
> method, get_api_json_object().
> 
> Additionally, rather than creating a new Client for every request, use the
> Client instantiated in main(). This also means that Jenkins will use HTTP
> proxy settings just like Patchwork.
> 
> Signed-off-by: Andrew Donnellan <andrew.donnellan at au1.ibm.com>
> 
> ---

Merged to master as dbf9983e7358b59b267b97f948407e2babc92c64...6 days ago.
Didn't send an email or update Patchwork since I'm a terrible human being.


More information about the snowpatch mailing list