mirror of https://github.com/axmolengine/axmol.git
[Jenkins][ci skip]: Fix call method
This commit is contained in:
parent
7f1d694f03
commit
06ba28597c
|
@ -54,8 +54,9 @@ def main():
|
||||||
#set commit status to pending
|
#set commit status to pending
|
||||||
target_url = os.environ['JOB_PULL_REQUEST_BUILD_URL']
|
target_url = os.environ['JOB_PULL_REQUEST_BUILD_URL']
|
||||||
|
|
||||||
if(action == 'closed'):
|
|
||||||
check_queue_build(action, pr_num, statuses_url)
|
check_queue_build(action, pr_num, statuses_url)
|
||||||
|
|
||||||
|
if(action == 'closed'):
|
||||||
print 'pull request #' + str(pr_num) + ' is '+action+', no build triggered'
|
print 'pull request #' + str(pr_num) + ' is '+action+', no build triggered'
|
||||||
return(0)
|
return(0)
|
||||||
|
|
||||||
|
@ -79,7 +80,6 @@ def main():
|
||||||
except:
|
except:
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
|
|
||||||
check_queue_build(action, pr_num, statuses_url)
|
|
||||||
job_trigger_url = os.environ['JOB_TRIGGER_URL']
|
job_trigger_url = os.environ['JOB_TRIGGER_URL']
|
||||||
#send trigger and payload
|
#send trigger and payload
|
||||||
post_data = {'payload':""}
|
post_data = {'payload':""}
|
||||||
|
|
Loading…
Reference in New Issue