projects
/
tools
/
python-jenkinsapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9c64e40
)
moved the test for war existance into python
author
salimfadhley
<sal@stodge.org>
Tue, 18 Jun 2013 23:02:37 +0000
(
00:02
+0100)
committer
salimfadhley
<sal@stodge.org>
Tue, 18 Jun 2013 23:02:37 +0000
(
00:02
+0100)
jenkinsapi_utils/jenkins_launcher.py
patch
|
blob
|
history
diff --git
a/jenkinsapi_utils/jenkins_launcher.py
b/jenkinsapi_utils/jenkins_launcher.py
index
d271ed6
..
e52d3c5
100644
(file)
--- 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.")