jenkins构建统一错误

时间:2021-08-20 20:11:06

Machine:Mac UnityVer:4.6.2

机器:Mac UnityVer:4.6.2

error of the following will appear when you have made a jenkins build of unity.

当你制作了一个统一的jenkins构建时,会出现以下错误。

----- Total AssetImport time: 6.818127s, AssetImport time: 6.808909s, Asset hashing: 0.005416s [60.9 KB, 10.972655 mb/s]

----- Total AssetImport总时间:6.818127s,AssetImport时间:6.808909s,资产哈希值:0.005416s [60.9 KB,10.972655 mb / s]

Platform assembly: /Applications/Unity4.6.2/Unity.app/Contents/Frameworks/Mono/lib/mono/2.0/System.Data.dll (this message is harmless) System memory in use before: 71.7 MB. Unloading 137 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0) System memory in use after: 66.8 MB.

平台程序集:/Applications/Unity4.6.2/Unity.app/Contents/Frameworks/Mono/lib/mono/2.0/System.Data.dll(此消息无害)以前使用的系统内存:71.7 MB。卸载137未使用的序列化文件(现在加载的序列化文件:0 /脏序列化文件:0)使用后的系统内存:66.8 MB。

Unloading 0 unused Assets to reduce memory usage. Loaded Objects now: 6940. Total: 18.863014 ms (FindLiveObjects: 0.248059 ms CreateObjectMapping: 0.096515 ms MarkObjects: 1.745080 ms DeleteObjects: 0.012070 ms)

卸载0个未使用的资产以减少内存使用量。现在加载的对象:6940。总计:18.863014 ms(FindLiveObjects:0.248059 ms CreateObjectMapping:0.096515 ms MarkObjects:1.745080 ms DeleteObjects:0.012070 ms)

Scripts have compiler errors.

脚本有编译器错误。

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Utilities/Argv.cpp Line: 127)

(文件名:/Users/builduser/buildslave/unity/build/Runtime/Utilities/Argv.cpp行:127)

Aborting batchmode due to failure: Scripts have compiler errors.

由于失败而中止批处理模式:脚本存在编译器错误。

Thread 'UnityLookForNewInputDevices' is still running!

线程'UnityLookForNewInputDevices'仍在运行!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Threads/Thread.cpp Line: 68)

(文件名:/Users/builduser/buildslave/unity/build/Runtime/Threads/Thread.cpp行:68)

Thread was not cleaned up!

线程没有清理干净!

(Filename: /Users/builduser/buildslave/unity/build/Runtime/Threads/Posix/PlatformThread.cpp Line: 45)

(文件名:/Users/builduser/buildslave/unity/build/Runtime/Threads/Posix/PlatformThread.cpp行:45)

FATAL: Unity3d command line execution failed with status 1 Build step 'Invoke Unity3d Editor' marked build as failure FTP: Current build result is [FAILURE], not going to run. Finished: FAILURE

致命:Unity3d命令行执行失败,状态为1构建步骤'调用Unity3d编辑器'标记构建为失败FTP:当前构建结果为[FAILURE],不会运行。完成:失败

1 个解决方案

#1


-2  

The output shows you the problem: you have script errors. Until you fix your script errors, you won't be able to build.

输出显示问题:您有脚本错误。在修复脚本错误之前,您将无法构建。

You haven't included the script errors, so no-one can give you any more info. When you fix them, you'll probably find that it's nothing to do with Jenkins, and the question title is unrelated.

您没有包含脚本错误,因此没有人可以为您提供更多信息。当你修复它们时,你可能会发现它与Jenkins无关,而且问题标题是无关的。

Usual causes of this:

通常的原因:

  1. You have some editor scripts in you project
  2. 您的项目中有一些编辑器脚本
  3. You forgot to put #if guards around editor scripts and/or external scripts
  4. 你忘了把#if警卫放在编辑器脚本和/或外部脚本周围
  5. You forgot to copy/paste one of your 3rd party libraries or plugins onto the machine where you're doign the build - and it's not in source control already (where it should be).
  6. 您忘记将第三方库或插件中的一个复制/粘贴到您正在进行构建的机器上 - 并且它已经不在源代码控制中(它应该在哪里)。

#1


-2  

The output shows you the problem: you have script errors. Until you fix your script errors, you won't be able to build.

输出显示问题:您有脚本错误。在修复脚本错误之前,您将无法构建。

You haven't included the script errors, so no-one can give you any more info. When you fix them, you'll probably find that it's nothing to do with Jenkins, and the question title is unrelated.

您没有包含脚本错误,因此没有人可以为您提供更多信息。当你修复它们时,你可能会发现它与Jenkins无关,而且问题标题是无关的。

Usual causes of this:

通常的原因:

  1. You have some editor scripts in you project
  2. 您的项目中有一些编辑器脚本
  3. You forgot to put #if guards around editor scripts and/or external scripts
  4. 你忘了把#if警卫放在编辑器脚本和/或外部脚本周围
  5. You forgot to copy/paste one of your 3rd party libraries or plugins onto the machine where you're doign the build - and it's not in source control already (where it should be).
  6. 您忘记将第三方库或插件中的一个复制/粘贴到您正在进行构建的机器上 - 并且它已经不在源代码控制中(它应该在哪里)。