mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-11 11:06:25 +00:00
[HUDSON-2918] node properties and environment variables
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@15502 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
1 parent
481fd5ab2e
commit
87eb6367cd
37 files changed
+1293
-178
No files matched your search
@@ -107,7 +107,7 @@ public class Util {
|
||||
public static String replaceMacro(String s, Map<String,String> properties) {
|
||||
return replaceMacro(s,new VariableResolver.ByMap<String>(properties));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Replaces the occurrence of '$key' by <tt>resolver.get('key')</tt>.
|
||||
*
|
||||
@@ -115,6 +115,10 @@ public class Util {
|
||||
* Unlike shell, undefined variables are left as-is (this behavior is the same as Ant.)
|
||||
*/
|
||||
public static String replaceMacro(String s, VariableResolver<String> resolver) {
|
||||
if (s == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
int idx=0;
|
||||
while(true) {
|
||||
Matcher m = VARIABLE.matcher(s);
|
||||
|
||||
Reference in new issue
Block a user