update: 更新 JenkinsAgent
							parent
							
								
									754ea97fb4
								
							
						
					
					
						commit
						905f683c7c
					
				|  | @ -0,0 +1,51 @@ | |||
| 
 | ||||
| 
 | ||||
| namespace Guru.Editor | ||||
| { | ||||
|     using System; | ||||
|     using UnityEngine; | ||||
|      | ||||
|      | ||||
|     public class JenkinsAgent | ||||
|     { | ||||
|          | ||||
|          | ||||
|         public static AppBuildParam ParseJenkinsBuildParam(string[] commandlineArgs) | ||||
|         { | ||||
|             int len = commandlineArgs.Length; | ||||
| 
 | ||||
|             Debug.Log($"------------ Jenkins set commands: {len} ------------"); | ||||
| 
 | ||||
| 
 | ||||
|             string p = ""; | ||||
|             for (int i = 0; i < len; i++) | ||||
|             { | ||||
|                 p = commandlineArgs[i]; | ||||
|                 Debug.Log($"--- [{i}]: {p}"); | ||||
| 
 | ||||
|                 if (p.StartsWith("-param")) | ||||
|                 { | ||||
|                     Debug.Log($"--- find param: {p}"); | ||||
|                 } | ||||
|             } | ||||
|              | ||||
|              | ||||
|             var buildParam = new AppBuildParam(); | ||||
|             return buildParam; | ||||
|         } | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|         public static void BuildAndroid() | ||||
|         { | ||||
|             AppBuildParam buildParam = ParseJenkinsBuildParam(Environment.GetCommandLineArgs());   | ||||
|         } | ||||
| 
 | ||||
| 
 | ||||
|     } | ||||
| 
 | ||||
| 
 | ||||
|      | ||||
| 
 | ||||
| } | ||||
|  | @ -0,0 +1,3 @@ | |||
| fileFormatVersion: 2 | ||||
| guid: 6f2cde4b226e401babf1c1e9088e1673 | ||||
| timeCreated: 1711889309 | ||||
		Loading…
	
		Reference in New Issue