I’m guessing that, if you run your command from the command line, you get your 
output more quickly than you do when you run it in Jenkins.

One possibility is that the program writing the log can tell whether it’s 
writing to a TTY or not, and changes its behavior accordingly.  Often, this 
means that it flushes its output cache every line for TTY output, and every 
(say) 1024 bytes for non-TTY output.

If you’re using Unix, try running this (replacing foo with your command):

foo > file.out &; tail –f file.out

This makes the foo command write to a file rather than a TTY, and lets you see 
what gets written to that file in real time.

If this is indeed the problem, I don’t have a solution right off, except to 
google for “Jenkins slave tty” and go from there.

Hope this helps!

--Rob

From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Behrang Saeedzadeh
Sent: Tuesday, December 02, 2014 9:14 PM
To: jenkinsci-users@googlegroups.com
Subject: What steps should I take to diagnose why output does not appear in 
Jenkins's "Console Output" immediately?

Hi,

We have some Jenkins jobs that at some point during their executions output 
they produce during execution of their scripts, etc. does not appear in the 
Jenkins "Console Output" immediately.

What are some things that can cause this behavior and how do you suggest I 
should start diagnosing this?
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to 
jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fb455d67-b0e6-4f4b-b491-3962851905cf%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/fb455d67-b0e6-4f4b-b491-3962851905cf%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.


Click 
here<https://www.mailcontrol.com/sr/3hMzoHQh6h!GX2PQPOmvUtVTDJsKpCsg8hqP+rIAYoUqiRB+oN7Q1FoT4ILRgIFHY3TQOiZ2K0IgL4AI7al!HQ==>
 to report this email as spam.

________________________________
This e-mail and the information, including any attachments it contains, are 
intended to be a confidential communication only to the person or entity to 
whom it is addressed and may contain information that is privileged. If the 
reader of this message is not the intended recipient, you are hereby notified 
that any dissemination, distribution or copying of this communication is 
strictly prohibited. If you have received this communication in error, please 
immediately notify the sender and destroy the original message.

Thank you.

Please consider the environment before printing this email.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/0A40042D85E7C84DB443060EC44B3FD36D9A6B85A6%40dekaexchange07.deka.local.
For more options, visit https://groups.google.com/d/optout.

Reply via email to