Class EnvVarsResolver
java.lang.Object
org.jenkinsci.plugins.envinjectapi.util.EnvVarsResolver
Provides utility methods for resolving environment variables.
- Author:
- Gregory Boissinot, Oleg Nenashev
-
Method Summary
Modifier and TypeMethodDescriptiongetCauseEnvVars
(Run<?, ?> run) Retrieves variables describing the Run cause.getPollingEnvVars
(Job<?, ?> job, Node node) static String
resolveEnvVars
(Run<?, ?> run, String value)
-
Method Details
-
getPollingEnvVars
@NonNull public static Map<String,String> getPollingEnvVars(@NonNull Job<?, ?> job, @CheckForNull Node node) throws org.jenkinsci.lib.envinject.EnvInjectException- Throws:
org.jenkinsci.lib.envinject.EnvInjectException
-
getEnVars
@NonNull public static Map<String,String> getEnVars(@NonNull Run<?, ?> run) throws org.jenkinsci.lib.envinject.EnvInjectException- Throws:
org.jenkinsci.lib.envinject.EnvInjectException
-
resolveEnvVars
@CheckForNull public static String resolveEnvVars(@NonNull Run<?, ?> run, @CheckForNull String value) throws org.jenkinsci.lib.envinject.EnvInjectException- Throws:
org.jenkinsci.lib.envinject.EnvInjectException
-
getCauseEnvVars
Retrieves variables describing the Run cause.- Parameters:
run
- Run- Returns:
- Set of environment variables, which depends on the cause type.
-