public class EnvVarsUtils extends Object
Constructor and Description |
---|
EnvVarsUtils(hudson.model.AbstractBuild<?,?> build,
hudson.model.BuildListener listener,
ConsoleLogger cLog) |
Modifier and Type | Method and Description |
---|---|
String |
getValue(String key)
Retrieve value from $VARIABLE or classic name
|
String |
getVar(String toResolve)
Transform $VARIABLE in good value
|
Map<String,String> |
getVars(Map<String,String> toResolves)
Tranfrom a list of $VARIABLE in good value
|
void |
setVar(String name,
String value)
Put a couple name/value in the env variable map
|
void |
setVars(Map<String,Output> toPuts,
Map<String,String> outputs)
Put $VARIBLE in context to be disponble at different step of the build
|
public EnvVarsUtils(hudson.model.AbstractBuild<?,?> build, hudson.model.BuildListener listener, ConsoleLogger cLog)
public Map<String,String> getVars(Map<String,String> toResolves)
toResolves
- variables to transformpublic String getVar(String toResolve)
toResolve
- variable to transformpublic void setVars(Map<String,Output> toPuts, Map<String,String> outputs)
toPuts
- variables to setoutputs
- values possiblespublic void setVar(String name, String value)
name
- variable namevalue
- value associated to the variable nameCopyright © 2016–2017. All rights reserved.