用jenkins 调用命令行打包偶尔会出错,造成打包的小游戏无法正常使用。 一样的构建参数 5次大概出1次 打包后脚本丢失的问题。
日志中发现有has a bad timestamp的问题。
2023-12-20 12:04:30-groupCollapsed: Imports all modules
2023-12-20 12:04:30-debug: [[Executor]] Module “pack:///chunks/ce/cee638a986ad8fae09398db255647defcaa6612a.js” loaded.
[Assets] Chunk ‘chunks/65/654da6673682b92f7e031c496b30506e6b485c89.js’ has a bad timestamp.
2023-12-20 12:04:30-warn: AssertionError [ERR_ASSERTION]: Chunk ‘chunks/65/654da6673682b92f7e031c496b30506e6b485c89.js’ has a bad timestamp.
at new AssertionError (internal/assert/assertion_error.js:456:5)
at Object.asserts (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\utils\asserts.ts15)
at PackModInstantiation.instantiate (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\executor\pack-mod-instantiation.ts:85:13)
at D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\executor\index.ts:121:34
at ExecutorSystem._instantiate (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\editor-systemjs\index.ts:167:30)
at Executor._importPrerequisiteModules (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\executor\index.ts:267:13)
at Executor.reload (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\executor\index.ts:155:9)
at BuildTask.handle (D:\cocoseditor\Creator\3.7.3\resources\app.asar\builtin\builder\dist\worker\builder\data-task\load-script.ccc:1:2386)
at BuildTask.runBuildTask (D:\cocoseditor\Creator\3.7.3\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:10065)
at BuildTask.build (D:\cocoseditor\Creator\3.7.3\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:4164)
2023-12-20 12:04:30-log: pack:///chunks/65/654da6673682b92f7e031c496b30506e6b485c89.js
AssertionError [ERR_ASSERTION]: Chunk ‘chunks/65/654da6673682b92f7e031c496b30506e6b485c89.js’ has a bad timestamp.
at new AssertionError (internal/assert/assertion_error.js:456:5)
at Object.asserts (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\utils\asserts.ts15)
at PackModInstantiation.instantiate (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\executor\pack-mod-instantiation.ts:85:13)
at D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\executor\index.ts:121:34
at ExecutorSystem._instantiate (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\editor-systemjs\index.ts:167:30)
at Executor._importPrerequisiteModules (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\executor\index.ts:267:13)
at Executor.reload (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\executor\index.ts:155:9)
at BuildTask.handle (D:\cocoseditor\Creator\3.7.3\resources\app.asar\builtin\builder\dist\worker\builder\data-task\load-script.ccc:1:2386)
at BuildTask.runBuildTask (D:\cocoseditor\Creator\3.7.3\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:10065)
at BuildTask.build (D:\cocoseditor\Creator\3.7.3\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:4164)
false
[Assets] Chunk ‘chunks/65/654da6673682b92f7e031c496b30506e6b485c89.js’ has a bad timestamp.
2023-12-20 12:04:30-warn: AssertionError [ERR_ASSERTION]: Chunk ‘chunks/65/654da6673682b92f7e031c496b30506e6b485c89.js’ has a bad timestamp.
at new AssertionError (internal/assert/assertion_error.js:456:5)
at Object.asserts (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\utils\asserts.ts15)
at PackModInstantiation.instantiate (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\executor\pack-mod-instantiation.ts:85:13)
at D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\executor\index.ts:121:34
at ExecutorSystem._instantiate (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\editor-systemjs\index.ts:167:30)
at Executor._importPrerequisiteModules (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\executor\index.ts:267:13)
at Executor.reload (D:\cocoseditor\Creator\3.7.3\resources\app.asar\node_modules@editor\lib-programming\src\executor\index.ts:155:9)
at BuildTask.handle (D:\cocoseditor\Creator\3.7.3\resources\app.asar\builtin\builder\dist\worker\builder\data-task\load-script.ccc:1:2386)
at BuildTask.runBuildTask (D:\cocoseditor\Creator\3.7.3\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:10065)
at BuildTask.build (D:\cocoseditor\Creator\3.7.3\resources\app.asar\builtin\builder\dist\worker\builder\index.ccc:1:4164)
2023-12-20 12:04:30-groupEnd: Imports all modules
2023-12-20 12:04:30-debug: // ---- build task Reload project scripts ---- (153ms)
2023-12-20 12:04:30-debug: run build task Reload project scripts success in 153 ms √6%
2023-12-20 12:04:30-debug: Query asset bundle start6%
2023-12-20 12:04:30-debug: // ---- build task Query asset bundle ----
2023-12-20 12:04:30-debug: Process: heapTotal 279.62MB heapUsed 258.36MB rss 598.61MB
2023-12-20 12:04:30-debug: // ---- build task Query asset bundle ---- (101ms)
2023-12-20 12:04:30-debug: run build task Query asset bundle success in 101 ms √7%
2023-12-20 12:04:30-debug: Query and organize assets start7%
2023-12-20 12:04:30-debug: // ---- build task Query and organize assets ----
2023-12-20 12:04:30-debug: Process: heapTotal 280.62MB heapUsed 260.09MB rss 599.29MB
2023-12-20 12:04:30-debug: init bundle assets
2023-12-20 12:04:30-debug: Query preload assets from cc.config.json: 60f7195c-ec2a-45eb-ba94-8955f60e81d0,1c02ae6f-4492-4915-b8f8-7492a3b1e4cd,810e96e4-e456-4468-9b59-f4e8f39732c0,efe8e2a3-eace-427b-b4f1-cb8a937ec77d,e9aa9a3e-5b2b-4ac7-a2c7-073de2b2b24f,8bbdbcdd-5cd4-4100-b6d5-b7c9625b6107,50f4348b-c883-4e2f-8f11-ce233b859fa1,fda095cb-831d-4601-ad94-846013963de8,f92806d7-1768-443f-afe8-12bcde84d0f0,dd3a144d-ab7f-41f0-82b8-2e43a090d496,f0416e68-0200-4b77-a926-4f9d16e494da,ff9be190-20a4-4e48-b68c-76e3c7cff085,970b0598-bcb0-4714-91fb-2e81440dccd8,bcd64cc6-2dd9-43f6-abbe-66318d332032,d930590d-bb92-4cc8-8bd1-23cd027f9edf,a3cd009f-0ab0-420d-9278-b9fdab939bbc,9361fd90-ba52-4f84-aa93-6e878fd576ca,871c3b6c-7379-419d-bda3-794b239ab90d,c27215d8-6835-4b68-bfbb-bdeac6100c04,b5d6115f-0370-4d7c-aad3-c194cc71cf98
2023-12-20 12:04:30-debug: Number of scenes: 1
2023-12-20 12:04:30-debug: Start sort share asset in bundle
[Assets] Missing class: 1740fPq8fpNwa2LPhKjNOr1
2023-12-20 12:04:30-warn: Missing class: 1740fPq8fpNwa2LPhKjNOr1
[Assets] Script “1740fPq8fpNwa2LPhKjNOr1” attached to “ui_load” in prefab “ui_load” is missing or invalid. Detailed information:
Node path: “ui_load”
Asset url: “db://assets/resources/ui/ui_load”
Script UUID: “1740f3ea-f1fa-4dc1-ad8b-3e12a334eaf5”
Class ID: “1740fPq8fpNwa2LPhKjNOr1”
2023-12-20 12:04:30-error: Script “1740fPq8fpNwa2LPhKjNOr1” attached to “ui_load” in prefab “ui_load” is missing or invalid. Detailed information:
Node path: “ui_load”
Asset url: “db://assets/resources/ui/ui_load”
Script UUID: “1740f3ea-f1fa-4dc1-ad8b-3e12a334eaf5”
Class ID: “1740fPq8fpNwa2LPhKjNOr1”
[Assets] Missing class: da552+kmutP8bhGO0+y6XvX
2023-12-20 12:04:30-warn: Missing class: da552+kmutP8bhGO0+y6XvX
[Assets] Script “da552+kmutP8bhGO0+y6XvX” attached to “load” in scene “load_scene” is missing or invalid. Detailed information:
Node path: “load”
Asset url: “db://assets/scenes/load_scene”
Script UUID: “da552fa4-9aeb-4ff1-b846-3b4fb2e97bd7”
Class ID: “da552+kmutP8bhGO0+y6XvX”
2023-12-20 12:04:30-error: Script “da552+kmutP8bhGO0+y6XvX” attached to “load” in scene “load_scene” is missing or invalid. Detailed information:
Node path: “load”
Asset url: “db://assets/scenes/load_scene”
Script UUID: “da552fa4-9aeb-4ff1-b846-3b4fb2e97bd7”
Class ID: “da552+kmutP8bhGO0+y6XvX”
[Assets] Missing class: 29001ext25FNY8xwt+of/yU
2023-12-20 12:04:31-warn: Missing class: 29001ext25FNY8xwt+of/yU
[Assets] Script “29001ext25FNY8xwt+of/yU” attached to “army_item” in prefab “army_item” is missing or invalid. Detailed information:
Node path: “army_item”
Asset url: “db://assets/bundles/ui_bundle/perfabs/army_item”
Script UUID: “290017b1-b76e-4535-8f31-c2dfa87ffc94”
Class ID: “29001ext25FNY8xwt+of/yU”
2023-12-20 12:04:31-error: Script “29001ext25FNY8xwt+of/yU” attached to “army_item” in prefab “army_item” is missing or invalid. Detailed information:
Node path: “army_item”
Asset url: “db://assets/bundles/ui_bundle/perfabs/army_item”
Script UUID: “290017b1-b76e-4535-8f31-c2dfa87ffc94”
Class ID: “29001ext25FNY8xwt+of/yU”