--- /dev/null
+import logging
+logging.basicConfig()
+
+from jenkinsapi.jenkins import Jenkins
+J = Jenkins('http://localhost:8080')
+jobName = 'create_fwrgmkbbzk'
+
+config = J[jobName].get_config()
+
+print config
+
self.q = Queue.Queue()
def update_war(self):
- if not os.path.exists(self.war_path):
- with io.open(self.war_path, 'wb') as war_file:
- log.info("Downloading the Jenkins WAR file")
- war_response = requests.get(self.JENKINS_WAR_URL)
- war_file.write(war_response.text)
- log.info('Done!')
-
os.chdir(self.war_directory)
subprocess.check_call('./get-jenkins-war.sh')
if 'Failed to initialize Jenkins' in line:
raise FailedToStart(line)
+ if 'Invalid or corrupt jarfile' in line:
+ raise FailedToStart(line)
+
if 'is fully up and running' in line:
log.info(line)
return