import requests
import json
url='http://test.com/job/MY_JOB_NAME/build'
params={'name':'BRANCH', 'value':'master', 'name':'GITURL', 'value':'https://github.test.com/test/test.git'}
payload = json.dumps(params)
print payload
resp = requests.post(url=url, data=payload)
For some reason the request doesn't get executed successfully, so I print the payload to see what paramaters are being passed as json and I get this:
{"name": "GITURL", "value": "https://github.scm.corp.ebay.com/RPS/RPS.git"}
Why is my payload missing the first 2 json key-value pairs ?