diff --git a/_unittests/ut_jenkinshelper/test_jenkinsext.py b/_unittests/ut_jenkinshelper/test_jenkinsext.py index 2d8151dff..124bf6003 100644 --- a/_unittests/ut_jenkinshelper/test_jenkinsext.py +++ b/_unittests/ut_jenkinshelper/test_jenkinsext.py @@ -27,6 +27,30 @@ class TestJenkinsExt(unittest.TestCase): + def test_jenkins_job_verif(self): + fLOG( + __file__, + self._testMethodName, + OutputPrint=__name__ == "__main__") + + engines_default = dict(anaconda2="c:\\Anaconda", + anaconda3="c:\\Anaconda3", + py35="c:\\Python35_x64", + default="c:\\Python34_x64", + winpython="c:\\APythonENSAE\\python") + + srv = JenkinsExt( + "http://localhost:8080/", "user", "password", + mock=True, fLOG=fLOG, engines=engines_default) + + job = "standalone [conda_update] [anaconda3]" + cmd = srv.get_cmd_standalone(job) + assert "Anaconda3" in cmd + + job = "pyrsslocal [py35] <-- pyquickhelper, pyensae" + cmd = "\n".join(srv.get_jenkins_script(job)) + assert "Python34" not in cmd + def test_jenkins_ext(self): fLOG( __file__, diff --git a/src/pyquickhelper/jenkinshelper/jenkins_server.py b/src/pyquickhelper/jenkinshelper/jenkins_server.py index 883fc19f6..eefe68b67 100644 --- a/src/pyquickhelper/jenkinshelper/jenkins_server.py +++ b/src/pyquickhelper/jenkinshelper/jenkins_server.py @@ -199,7 +199,6 @@ def delete_all_jobs(self): """ delete all jobs permanently. - @param fLOG logging function @return list of deleted jobs .. versionadded:: 1.3