更新时间:2022-01-17 09:09:09
在Jenkins中,如果要设置环境变量并在Java代码中访问它,可以使用以下步骤:
In Jenkins if you want to set an environment variable and access it in your java code you can use below steps :
您可以使用以下代码在java程序中访问相同的环境变量.
You can access the same environment variable in java program using below code.
System.out.println(System.getenv("Browser"));