update: 更新 Jenkins 参数解析逻辑

deeplink
胡宇飞 2024-03-31 21:48:46 +08:00
parent 905f683c7c
commit f0a64b1e2c
1 changed files with 10 additions and 1 deletions

View File

@ -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]}");
}
}
}