[Jenkins][ci skip]: Fix call method

This commit is contained in:
lm 2014-04-03 11:42:34 +08:00
parent 7f1d694f03
commit 06ba28597c
1 changed files with 2 additions and 2 deletions

View File

@ -54,8 +54,9 @@ def main():
#set commit status to pending
target_url = os.environ['JOB_PULL_REQUEST_BUILD_URL']
check_queue_build(action, pr_num, statuses_url)
if(action == 'closed'):
check_queue_build(action, pr_num, statuses_url)
print 'pull request #' + str(pr_num) + ' is '+action+', no build triggered'
return(0)
@ -79,7 +80,6 @@ def main():
except:
traceback.print_exc()
check_queue_build(action, pr_num, statuses_url)
job_trigger_url = os.environ['JOB_TRIGGER_URL']
#send trigger and payload
post_data = {'payload':""}