Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  3. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Command line build failure

Discussion in '5.4 Beta' started by Hyp-X, Jun 20, 2016.

  1. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    438
    According to the build notes:

    Editor: Optional "strict mode" when building projects and AssetBundles, which will fail the build if any errors (even non-fatal ones) are reported during the build process.

    Can anyone tell how to disable this "strict mode" when building from command line?
    It seems the documentation is not yet updated to reflect this.
     
  2. superpig

    superpig

    Drink more water! Unity Technologies

    Joined:
    Jan 16, 2011
    Posts:
    4,660
    As the release note says, it is optional - it should not be taking effect from the command line.

    Note that even with strict mode turned off, fatal errors can still prevent the build from producing output.
     
  3. Hyp-X

    Hyp-X

    Joined:
    Jun 24, 2015
    Posts:
    438
    Actually as I found out the build is created, but unity dumps misleading error messages saying build cancelled, and returns an error code causing CI to report a build failure.
     
  4. Alex-Lian

    Alex-Lian

    Guest

    Sounds like a bug, could we get a bug report please?