<h2class="anchor anchorWithStickyNavbar_JmGV"id="parameters">Parameters<aclass="hash-link"aria-label="Direct link to Parameters"title="Direct link to Parameters"href="/api/namespaces/containerEngine/functions/buildImage#parameters"></a></h2>
<p>a function called when new build logs are emitted or new events happen during the build operation. The value of <code>eventName</code> can be either <code>stream</code> (and <code>data</code> contains the logs), or <code>finish</code> indicating the end of the build operation, or <code>error</code> in case of build error (and <code>data</code> contains the error message)</p>
<h2class="anchor anchorWithStickyNavbar_JmGV"id="returns">Returns<aclass="hash-link"aria-label="Direct link to Returns"title="Direct link to Returns"href="/api/namespaces/containerEngine/functions/buildImage#returns"></a></h2>
<h2class="anchor anchorWithStickyNavbar_JmGV"id="defined-in">Defined in<aclass="hash-link"aria-label="Direct link to Defined in"title="Direct link to Defined in"href="/api/namespaces/containerEngine/functions/buildImage#defined-in"></a></h2>