Skip to content
Permalink
Browse files

[JENKINS-48593] - Add getSystemProperty(key) to fix hudson.consoleTai…

…lKB 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
  • Loading branch information...
jan-z authored and oleg-nenashev committed Dec 22, 2017
1 parent 90f778d commit 006c51256e58d9b691956962d9fd624fb0c1e08b
Showing with 10 additions and 0 deletions.
  1. +10 −0 core/src/main/java/hudson/Functions.java
@@ -469,6 +469,16 @@ public static Map getSystemProperties() {
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);
}

0 comments on commit 006c512

Please sign in to comment.
You can’t perform that action at this time.