0d7b59f5d2
When the server has an URL path such as http://example.org/ci/, the get_running_builds() would fail to extract the job name from the executor informations. It most probably fails when using CloudBees folder as well. Relax the regex used to detect the job name by changing match() with search(). Update JenkinsListRunningBuildsTest so it craft the URLs based on the test scenario (make_url) instead of hardcoding them. That would have caught the bug. See 2aa1a5f1 which introduced the scenarios. Signed-off-by: Antoine Musso <hashar@free.fr> Change-Id: I1b69adf121ee74e3336ac9bd1d4d55797fb72de5