From: salimfadhley Date: Tue, 18 Jun 2013 23:02:37 +0000 (+0100) Subject: moved the test for war existance into python X-Git-Tag: v0.2.23~145 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=db6b85b108957a4c2bcc17bb8e688fbbd478034d;p=tools%2Fpython-jenkinsapi.git moved the test for war existance into python --- diff --git a/jenkinsapi_utils/jenkins_launcher.py b/jenkinsapi_utils/jenkins_launcher.py index d271ed6..e52d3c5 100644 --- a/jenkinsapi_utils/jenkins_launcher.py +++ b/jenkinsapi_utils/jenkins_launcher.py @@ -56,7 +56,11 @@ class JenkinsLancher(object): def update_war(self): os.chdir(self.war_directory) - subprocess.check_call('./get-jenkins-war.sh') + if os.path.exists(self.war_path): + log.info("We already have the War file...") + else: + log.info("Redownloading Jenkins") + subprocess.check_call('./get-jenkins-war.sh') def stop(self): log.info("Shutting down jenkins.")