Search Issue Tracker

By Design



Found in




Issue ID




IPostprocessBuildWithReport.OnPostprocessBuild function is not called when the Build fails

Build Pipeline


How to reproduce:
1. Open the attached project
2. In the Project Window, open the "NewBehaviourScript" located in the Assets folder
3. In the Script, uncomment the 6th line of code
4. Build the project

Expected result: OnPostprocessBuild function is called when the Build fails
Actual result: OnPostprocessBuild function is not called when the Build fails

Reproducible with: 2018.4.19f1, 2019.3.4f1, 2020.1.0b1, 2020.2.0a2
Couldn't test with: 2017.4.37f1 (IPostprocessBuildWithReport does not exist)

  1. Response avatar

    Resolution Note:

    The build has failed and we stop all processing as quickly as possible to return control of the editor back to the user. This includes further processing of build callbacks that have yet to be called for this build.

Comments (2)

  1. 162782902a85928256d1d1e7b617ab78?d=mm


    Sep 24, 2021 11:20

    If this is by default, then what is BuildReport.summary.result.Failed used for?

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.