From 9ef674317b25ea6628a583a939c6f2e200855ce1 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 07 2016 10:15:31 +0000 Subject: Fix building the jenkins URL to call to trigger the build in pagure-ci --- diff --git a/pagure-ci/pagure_ci_server.py b/pagure-ci/pagure_ci_server.py index aedeec3..99ff2fb 100644 --- a/pagure-ci/pagure_ci_server.py +++ b/pagure-ci/pagure_ci_server.py @@ -97,10 +97,10 @@ def handle_messages(): "Trigger on %s PR #%s from %s: %s", project.fullname, pr_id, repo, branch) - url = project.ci_hook.ci_url + url = project.ci_hook.ci_url.rstrip('/') if data['ci_type'] == 'jenkins': - url = urlparse.urljoin(url, '/buildWithParameters') + url = url + '/buildWithParameters' log.info('Triggering the build at: %s', url) requests.post( url,