更新时间:2022-05-31 10:07:48
试试这种方式 System.getenv(env var name)
like
try this way System.getenv("env var name")
like
home = System.getenv('Third_Party')
task env_read << {
println "$System.env.HOME"
//Other way of accessing the environment variable.
println System.getenv('Third_Party')
}