All,

I'd very much like to take the monitoring of my jenkins processes into the 
shell:

1. ability to attach to a tmux session and script it so that each new 
node's jobs are listed there
2. ability to be stateless and have the logger on the unix server
3. ability to share the output of logs with other users (again via tmux's 
screen sharing mechanism).

However, looking into it, jenkins is really frustrating my intentions here. 

First I thought I'd do the simple thing, namely wget on consoleText in a 
loop, and then append the delta to an output log. But apparently 
consoleText trucates the lines at the first 10000(!) and then doesn't even 
progress.

Second I thought that I might go onto the executor, and find the file that 
slave.jar is outputting to locally before it sends data to the jenkins 
master. But apparently there is no such file.

Third, I thought I might eavesdrop on the port that slave.jar is using, but 
again, it looks like there is no such port that slave.jar uses (instead 
opting for a pipe(?))

Fourth I thought I might look at consoleFull, but that is all wrapped in 
AJAX and therefore is hard to tap into via a command line utility.

Fifth I thought I might inject my own slave.jar (since I don't control the 
master jenkins implementation and cannot update it) but i'm not sure if 
this can even be done, nor the process for compiling my own slave.

Anyways, I'm rapidly running out of bullets here. I really don't like the 
necessity of clicking on multiple projects just to see what is happening - 
I'd much rather be able to see it all in a tmux session so I can have a 
program spawn a shell with a tail on that node, and proceed to monitor 
whats going on in each window of the tmux session. 

so how do you do this? what api call exists so that you can just get the 
latest <number> of lines in a given output file rather than the whole 
thing, and get it in such a format that you can use curl or wget to access 
it?

Or is there a workaround that I haven't thought of here?

Thanks much for any info.


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/c72621a8-37ab-4893-821b-f73bcd39e71e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to