From e12e80298d7a874b4c8fcecbae2cfdebfc5d4803 Mon Sep 17 00:00:00 2001 From: heliclei Date: Wed, 22 Jan 2014 15:23:29 +0800 Subject: [PATCH] update github api url and jenkins job trigger url --- tools/jenkins-scripts/create-job.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/jenkins-scripts/create-job.py b/tools/jenkins-scripts/create-job.py index 1aac211cdf..fac13cc4df 100644 --- a/tools/jenkins-scripts/create-job.py +++ b/tools/jenkins-scripts/create-job.py @@ -9,11 +9,11 @@ import requests pr_num = sys.argv[1] #get github access token -access_token = os.environ['GITHUB_ACCESS_TOKEN'] + #get pr data via github api -api_get_pr = "https://api.github.com/repos/cocos2d/cocos2d-x/pulls/"+str(pr_num)+"?access_token="+access_token +api_get_pr = "https://api.github.com/repos/cocos2d/cocos2d-x/pulls/"+str(pr_num) r = requests.get(api_get_pr) pr = r.json() @@ -23,7 +23,7 @@ payload = {"action":"opened","number":"","pull_request":""} payload['number']=pr_num payload['pull_request']=pr -jenkins_trigger_url="http://ci.cocos2d-x.org:8000/job/cocos-2dx-pull-request-build/buildWithParameters?token="+access_token +jenkins_trigger_url="http://115.28.134.83:8000/job/cocos-2dx-pull-request-build/buildWithParameters?token=ced2014" #send trigger and payload post_data = {'payload':""}