From bb02dcb44a3a032eb20d2a24fc7c5abd820e0504 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Aug 09 2016 15:53:52 +0000 Subject: Fix invalid variable and module names and log when it finished to process --- diff --git a/pagure-ci/pagure_ci_server.py b/pagure-ci/pagure_ci_server.py index e9ce04d..d2bfe62 100644 --- a/pagure-ci/pagure_ci_server.py +++ b/pagure-ci/pagure_ci_server.py @@ -101,18 +101,20 @@ def handle_messages(): if data['ci_type'] == 'jenkins': url += '/buildWithParameters' log.info('Triggering the build at: %s', url) - request.post( + requests.post( url, data={ - 'token': cfg.jenkins_token, + 'token': project.ci_hook[0].pagure_ci_token, 'cause': pr_id, - 'REPO': repo.fullname, + 'REPO': project.fullname, 'BRANCH': branch } ) else: log.warning('Un-supported CI type') + log.info('Ready for another') + def main(): server = None