The log file of the python automation project running on jenkins
过去多啦不再A梦
过去多啦不再A梦 2017-05-18 10:48:10
0
1
521
def log_settings(logging_path=None):
    import logging.config
    import logging.handlers
    if logging_path is None:
        logging_path = os.getenv('WORKSPACE', os.curdir)
        

When the Python automated test project is run in the local environment, a log file will be generated, but the log file cannot be collected on CI jenkins.

11:05:10 Output:  /var/fpwork/jenkins_wk/workspace/IMP_GIT_ET_Regression/IMP/test/ET/log/output.xml
11:05:16 Log:     /var/fpwork/jenkins_wk/workspace/IMP_GIT_ET_Regression/IMP/test/ET/log/log.html
11:05:16 Report:  /var/fpwork/jenkins_wk/workspace/IMP_GIT_ET_Regression/IMP/test/ET/log/report.html
11:05:16 iptables: Saving firewall rules to /etc/sysconfig/iptables: [  OK  ]
11:05:20 Archiving artifacts
11:05:27 Robot results publisher started...
11:05:27 -Parsing output xml:
11:05:27 Done!
11:05:27 -Copying log files to build dir:
11:05:36 Done

What's the problem?

过去多啦不再A梦
过去多啦不再A梦

reply all(1)
phpcn_u1582

It will actually be generated, but in the current directory of the calling program jenkins

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!