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