本地(的)环境
An Environment that runs commands in local /bin/sh subprocesses and reads and writes files in one workspace directory shared by every caller, so it ignores the per-call Context.
Without a workingDir, initialize creates a temporary directory that close deletes; a given directory is created if missing and never deleted. There is no sandboxing: commands run with the host's privileges and environment variables (filtered by inheritedEnvVarAllowlist, with envVars on top), and on timeout or cancellation they get SIGTERM, then SIGKILL.
Parameters
Absolute path to the workspace directory. If null or empty, a temporary directory is created during initialize.
Extra environment variables for every command, applied after the allowlist.
Names of the host's environment variables commands may inherit; null inherits all of them. PATH is always inherited, so commands find the host's programs.
类型
Fluent Builder for LocalEnvironment该功能主要为 Java 语言的调用者提供支持;如果某个属性未被设置,其值将默认使用构造函数中指定的默认值。