# addBuildListener

abstract fun addBuildListener(buildListener: BuildListener)(source)

Adds a BuildListener to this Build instance. The listener is notified of events which occur during the execution of the build.

BuildListener is not supported when the configuration cache is enabled. Check the individual methods of BuildListener for compatible replacements.

#### Parameters

buildListener

The listener to add.