From f0a64b1e2c87f688a5ec24ae6fc94c53790c6d28 Mon Sep 17 00:00:00 2001 From: huyufei Date: Sun, 31 Mar 2024 21:48:46 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=9B=B4=E6=96=B0=20Jenkins=20?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E8=A7=A3=E6=9E=90=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Editor/BuildTool/JenkinsAgent.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Editor/BuildTool/JenkinsAgent.cs b/Editor/BuildTool/JenkinsAgent.cs index c0361f4..fac4914 100644 --- a/Editor/BuildTool/JenkinsAgent.cs +++ b/Editor/BuildTool/JenkinsAgent.cs @@ -23,9 +23,18 @@ namespace Guru.Editor p = commandlineArgs[i]; Debug.Log($"--- [{i}]: {p}"); - if (p.StartsWith("-param")) + if (p.StartsWith("+args")) { Debug.Log($"--- find param: {p}"); + var args = p.Split('-'); + if (args.Length > 1) + { + Debug.Log($"--- ENV: {args[1]}"); + } + if (args.Length > 2) + { + Debug.Log($"--- VERSION: {args[2]}"); + } } }