OK, forget it. Should have read the doc a bit better:

@param maxLines The maximum number of log lines to return.  If the log
     * is bigger than this, only the most recent lines are returned.




2013/8/9 Baptiste MATHUS <[email protected]>

> Hi all,
>
> I'm trying to retrieve the end of the build log. Basically through
> something like build.getLogFromTheEnd(int maxLines).
>
> Through build.getLog*() I can't see to find the right one to do it easily.
> As Jenkins already does it when displaying the console log and skipping
> its beginning, I thought I would be able to reuse something existing.
>
> So, two questions:
>
>    - Is there a better way than doing a getLogFile() and doing myself the
>    file manipulation for this use case?
>    - If I end up doing it, would there be any interest of considering a
>    PR to add this feature directly in hudson.model.Run along other getLog*
>    methods? Or is it already considered a bad idea?
>
> Thanks for you feedback
>
> --
> Baptiste
>



-- 
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to