pwd = get_password("jenkins", "_automation,pwd", ask=False) host = get_password("jenkins", "_automation,host", ask=False) platform = "linux" if pwd is None: raise RuntimeError("Password is missing (None).") fLOG('password has been recovered.') ######################################### # instantiation d'une classe faisant l'interface avec le service if platform.startswith("win"): letter = "d" if os.path.exists("d:") else "c" location = letter + ":\\jenkins\\pymy" else: location = "/var/lib/jenkins/workspace" engines = engines_default(platform=platform) fLOG("------------") for k, v in sorted(engines.items()): fLOG(" {0}='{1}'".format(k, v)) fLOG("------------") fLOG("check:", [user, host]) fLOG("------------") js = JenkinsExt('http://{0}:8080/'.format(host), user, pwd, fLOG=fLOG, engines=engines, platform=platform) ######################################### # mise à jour des jobs setup_jenkins_server(js, overwrite=True, delete_first=False, location=location,
######################################### # import des fonctions dont on a besoin from pyquickhelper.jenkinshelper import JenkinsExt from ensae_teaching_cs.automation.jenkins_helper import setup_jenkins_server, engines_default ######################################### # récupération des identifiants Jenkins user = keyring.get_password("jenkins", "_automation,user") pwd = keyring.get_password("jenkins", "_automation,pwd") ######################################### # instantiation d'une classe faisant l'interface avec le service platform = sys.platform if platform.startswith("win"): location = "d:\\jenkins\\pymy" else: location = "/var/lib/jenkins/workspace" js = JenkinsExt('http://localhost:8080/', user, pwd, platform=platform, fLOG=fLOG, engines=engines_default(platform=platform)) ######################################### # mise à jour des jobs setup_jenkins_server(js, overwrite=True, delete_first=False, location="d:\\jenkins\\pymy", disable_schedule=False)
# logging from pyquickhelper.loghelper import fLOG # publish_lectures fLOG(OutputPrint=True) ######################################### # import des fonctions dont on a besoin from pyquickhelper.jenkinshelper import JenkinsExt from ensae_teaching_cs.automation.jenkins_helper import setup_jenkins_server, engines_default ######################################### # récupération des identifiants Jenkins user = keyring.get_password("jenkins", os.environ["COMPUTERNAME"] + "user") pwd = keyring.get_password("jenkins", os.environ["COMPUTERNAME"] + "pwd") ######################################### # instantiation d'une classe faisant l'interface avec le service js = JenkinsExt('http://localhost:8080/', user, pwd, fLOG=fLOG, engines=engines_default()) ######################################### # mise à jour des jobs setup_jenkins_server(js, overwrite=True, delete_first=False, location="d:\\jenkins\\pymy", disable_schedule=False)
fLOG(OutputPrint=True) ######################################### # import des fonctions dont on a besoin from pyquickhelper.jenkinshelper import JenkinsExt from ensae_teaching_cs.automation.jenkins_helper import setup_jenkins_server, engines_default ######################################### # récupération des identifiants Jenkins user = keyring.get_password("jenkins", os.environ["COMPUTERNAME"] + "user") pwd = keyring.get_password("jenkins", os.environ["COMPUTERNAME"] + "pwd") ######################################### # instantiation d'une classe faisant l'interface avec le service js = JenkinsExt('http://localhost:8080/', user, pwd, fLOG=fLOG, engines=engines_default()) ######################################### # mise à jour des jobs setup_jenkins_server(js, overwrite=True, delete_first=False, location="d:\\jenkins\\pymy", disable_schedule=False)
""" copy the documentation to the website """ import sys import os sys.path.append(os.path.abspath("../pyquickhelper/src")) sys.path.append(os.path.abspath("../pyensae/src")) sys.path.append(os.path.abspath("../ensae_teaching_cs/src")) sys.path.append(os.path.abspath("../pymyinstall/src")) from pyquickhelper.loghelper import fLOG from pyquickhelper.jenkinshelper import JenkinsExt from ensae_teaching_cs.automation.jenkins_helper import setup_jenkins_server, engines_default fLOG(OutputPrint=True) fLOG("start") import keyring user = keyring.get_password("jenkins", os.environ["COMPUTERNAME"] + "user") pwd = keyring.get_password("jenkins", os.environ["COMPUTERNAME"] + "pwd") js = JenkinsExt('http://localhost:8080/', user, pwd, fLOG=fLOG, engines=engines_default()) setup_jenkins_server(js, overwrite=True, delete_first=False, location="d:\\jenkins\\pymy", disable_schedule=False)