提交 006c5125 编写于 作者: J Jan Zuchhold 提交者: Oleg Nenashev

[JENKINS-48593] - Add getSystemProperty(key) to fix hudson.consoleTailKB system property (#3200)

* Add getSystemProperty(key) to fix hudson.consoleTailKB system property

* Add Javadoc, @Restricted and delegate to SystemProperties

These changes were requested by @daniel-beck.

* PR was not merged in time for 2.96

* Changes as requested by @oleg-nenashev
上级 90f778d2
......@@ -469,6 +469,16 @@ public class Functions {
return new TreeMap<Object,Object>(System.getProperties());
}
/**
* Gets the system property indicated by the specified key.
*
* Delegates to {@link SystemProperties#getString(java.lang.String)}.
*/
@Restricted(DoNotUse.class)
public static String getSystemProperty(String key) {
return SystemProperties.getString(key);
}
public static Map getEnvVars() {
return new TreeMap<String,String>(EnvVars.masterEnvVars);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册