Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ol> <li>It is saved along with the artifacts (the <code>log</code> file in top-level of build's directory, i.e. <code>jobs/</code><em>jobname</em><code>/builds/</code><em>buildid</em><code>/log</code>).</li> <li>It is automatically added to the email hudson sends, though truncated from begining.</li> </ol> <p>If you need to get it anywhere else, there are two options:</p> <ol> <li><p>You can have to wrap the script in a block and pipe it's output through tee. So you'd convert:</p> <pre><code>#!/bin/sh make this make that </code></pre> <p>to:</p> <pre><code>#!/bin/bash { make this make that } 2&gt;&amp;1 | tee output # Now the output is in file 'output' while Hudson did see it. </code></pre> <p>Unfortunately I am not sure how to force line-buffering in <code>tee</code> so the real-time log printing works in Hudson (at least my cygwin version does not mention <code>-u</code> option).</p></li> <li><p>You could use the <a href="https://wiki.jenkins-ci.org/display/JENKINS/Groovy+plugin" rel="nofollow">Groovy plugin</a> and/or <a href="https://wiki.jenkins-ci.org/display/JENKINS/Groovy+Postbuild+Plugin" rel="nofollow">Groovy Postbuild plugin</a> to access the internal API. The "system" groovy script in build step and the post-build groovy script both have access to the build object (though in slightly different way) of type <a href="http://javadoc.jenkins-ci.org/hudson/model/AbstractBuild.html" rel="nofollow">hudson.model.AbstractBuild</a> and from that you can get the content of the console using the <a href="http://javadoc.jenkins-ci.org/hudson/model/Run.html#getLog(int)" rel="nofollow">hudson.model.Run#getLog(int)</a> method.</p></li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload