diff options
author | salimfadhley <sal@stodge.org> | 2013-06-19 00:02:37 +0100 |
---|---|---|
committer | Salim Fadhley <sal@stodge.org> | 2013-06-23 21:21:52 +0100 |
commit | 937d1021e8b5c0083f28d9704de97dc73739ccf7 (patch) | |
tree | aefa99826fb8e7487cff48abf71e262ba1f12701 /jenkinsapi_utils | |
parent | 7108aa57fc6832b96b9a95d8d443abcafae54296 (diff) | |
download | python-jenkinsapi-937d1021e8b5c0083f28d9704de97dc73739ccf7.tar.gz python-jenkinsapi-937d1021e8b5c0083f28d9704de97dc73739ccf7.tar.bz2 python-jenkinsapi-937d1021e8b5c0083f28d9704de97dc73739ccf7.zip |
moved the test for war existance into python
Diffstat (limited to 'jenkinsapi_utils')
-rw-r--r-- | jenkinsapi_utils/jenkins_launcher.py | 6 |
1 files changed, 5 insertions, 1 deletions
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.") |