From b3ed6a6b08eeab3df452e0909f7cd9d9f40250c3 Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Feb 22 2018 19:04:29 +0000 Subject: pagure_ci: Strip trailing slashes instead of splitting the string to get the jenkins_name Jenkins jobnames can have slashes in them (yay). So doing str.split() may only get you a substring of the actual jobname. --- diff --git a/pagure-ci/pagure_ci_server.py b/pagure-ci/pagure_ci_server.py index 2a55d30..5039f2d 100644 --- a/pagure-ci/pagure_ci_server.py +++ b/pagure-ci/pagure_ci_server.py @@ -96,7 +96,7 @@ def handle_messages(): # Jenkins Base URL base_url, name = url.split('/job/', 1) - jenkins_name = name.split('/', 1)[0] + jenkins_name = name.rstrip('/') data = { 'cause': pr_id,