def launched_jenkins(): systests_dir, _ = os.path.split(__file__) war_path = os.path.join(systests_dir, 'jenkins.war') launcher = JenkinsLancher( war_path, PLUGIN_DEPENDENCIES, jenkins_url=os.getenv('JENKINS_URL', None) ) launcher.start() yield launcher log.info('All tests finished') launcher.stop()
def setUpPackage(): systests_dir, _ = os.path.split(__file__) war_path = os.path.join(systests_dir, 'jenkins.war') state['launcher'] = JenkinsLancher( war_path, PLUGIN_DEPENDENCIES, jenkins_url=os.getenv('JENKINS_URL', None)) state['launcher'].start()
def launched_jenkins(): systests_dir, _ = os.path.split(__file__) local_orig_dir = os.path.join(systests_dir, 'localinstance_files') if not os.path.exists(local_orig_dir): os.mkdir(local_orig_dir) war_name = 'jenkins.war' launcher = JenkinsLancher( local_orig_dir, systests_dir, war_name, PLUGIN_DEPENDENCIES, jenkins_url=os.getenv('JENKINS_URL', None) ) launcher.start() yield launcher log.info('All tests finished') launcher.stop()
def launched_jenkins(): systests_dir, _ = os.path.split(__file__) war_path = os.path.join(systests_dir, 'jenkins.war') launcher = JenkinsLancher(war_path, PLUGIN_DEPENDENCIES, jenkins_url=os.getenv('JENKINS_URL', None)) launcher.start() yield launcher log.info('All tests finished') launcher.stop()
def setUpPackage(): systests_dir, _ = os.path.split(__file__) war_path = os.path.join(systests_dir, 'jenkins.war') state['launcher'] = JenkinsLancher(war_path, PLUGIN_DEPENDENCIES) state['launcher'].start()