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:
7108aa5
)
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
Salim Fadhley
<sal@stodge.org>
Sun, 23 Jun 2013 20:21:52 +0000
(21:21 +0100)
jenkinsapi_utils/jenkins_launcher.py
patch
|
blob
|
history
diff --git
a/jenkinsapi_utils/jenkins_launcher.py
b/jenkinsapi_utils/jenkins_launcher.py
index d271ed6f8492a285056d280b83c1866dd1579420..e52d3c561a97b9d32313902398cb05d9384735b0 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.")