[Jenkins][ci skip] Change 'GITHUB_ACCESS_TOKEN' to 'GITHUB_COMMENT_ACCESS_TOKEN'

This commit is contained in:
lm 2014-04-17 09:57:55 +08:00
parent fb462b90b6
commit 008bdba373
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@ J = Jenkins(os.environ['JENKINS_URL'])
target_url = os.environ['BUILD_URL']
build_number = int(os.environ['BUILD_NUMBER'])
data = {}
access_token = os.environ['GITHUB_ACCESS_TOKEN']
access_token = os.environ['GITHUB_COMMENT_ACCESS_TOKEN']
Headers = {"Authorization":"token " + access_token}
result = J[os.environ['JOB_NAME']].get_build(build_number).get_status()