fix post data format

This commit is contained in:
heliclei 2014-01-06 22:24:47 +08:00
parent bc5303f6f2
commit 4c2fe530f9
1 changed files with 2 additions and 1 deletions

View File

@ -26,5 +26,6 @@ payload['pull_request']=pr
jenkins_trigger_url="http://ci.cocos2d-x.org:8000/job/cocos-2dx-pull-request-build/buildWithParameters?token="+access_token
#send trigger and payload
post_data = "payload:"+json.dumps(payload
post_data = {'payload':""}
post_data['payload']=json.dumps(payload)
requests.post(jenkins_trigger_url, data=post_data)