How to get Jenkins system log in unit test?

43 views
Skip to first unread message

Kirill

unread,
Jul 3, 2015, 5:48:11 AM7/3/15
to jenkin...@googlegroups.com
Hi all,

It's possible to get the build's log via JenkinsRule.getLog(Run), but how is it possible to get system log?
When my test is running, I see logs in the console -

INFO: Running on http://localhost:61649/jenkins/
Jul 03, 2015 10:39:10 AM jenkins.InitReactorRunner$1 onAttained
INFO: Started initialization
Jul 03, 2015 10:39:43 AM jenkins.InitReactorRunner$1 onAttained
INFO: Listed all plugins
Jul 03, 2015 10:39:43 AM jenkins.InitReactorRunner$1 onAttained
INFO: Prepared all plugins
............

But log in http://localhost:61649/jenkins/log/all is empty!

How is it possible to get sys log in test? I need to verify some output.

Regards,
Kirill.
Reply all
Reply to author
Forward
0 new messages