From ffb64f4a86efbfebf194e2f8648a1579aa8544d0 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 2 Mar 2015 20:17:39 +0200 Subject: [PATCH] Fix CI script. Requires jenkins-webapi>=0.4.1 --- scripts/jenkins_script.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/scripts/jenkins_script.py b/scripts/jenkins_script.py index 10d5efed6..c3727e3eb 100755 --- a/scripts/jenkins_script.py +++ b/scripts/jenkins_script.py @@ -42,7 +42,7 @@ import time from jenkins import Jenkins -JENKINS_URL = 'http://ci.openlp.org/' +JENKINS_URL = 'https://ci.openlp.io/' REPO_REGEX = r'(.*/+)(~.*)' # Allows us to black list token. So when we change the token, we can display a proper message to the user. OLD_TOKENS = [] @@ -75,15 +75,19 @@ class Colour(object): class JenkinsTrigger(object): + """ + A class to trigger builds on Jenkins and print the results. + + :param token: The token we need to trigger the build. If you do not have this token, ask in IRC. + """ + def __init__(self, token): """ Create the JenkinsTrigger instance. - - :param token: The token we need to trigger the build. If you do not have this token, ask in IRC. """ self.token = token self.repo_name = get_repo_name() - self.jenkins_instance = Jenkins(JENKINS_URL) + self.jenkins_instance = Jenkins(JENKINS_URL, verify=False) def trigger_build(self): """