@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public class RunHelper extends Object
AbstractBuild
.Constructor and Description |
---|
RunHelper() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
getBuildVariables(hudson.model.Run<?,?> run,
org.jenkinsci.lib.envinject.EnvInjectLogger logger) |
static void |
getBuildVariables(hudson.model.Run<?,?> run,
hudson.EnvVars result)
Gets build variables.
|
static EnvInjectJobProperty |
getEnvInjectJobProperty(hudson.model.Run<?,?> build) |
static Map<String,String> |
getEnvVarsPreviousSteps(hudson.model.Run<?,?> build,
org.jenkinsci.lib.envinject.EnvInjectLogger logger) |
static void |
getJDKVariables(hudson.model.Run<?,?> run,
hudson.model.TaskListener logger,
hudson.EnvVars result)
Gets JDK variables.
|
static Set<String> |
getSensitiveBuildVariables(hudson.model.Run<?,?> run)
Compatible version of
AbstractBuild.getSensitiveBuildVariables() |
public static Set<String> getSensitiveBuildVariables(@Nonnull hudson.model.Run<?,?> run)
AbstractBuild.getSensitiveBuildVariables()
run
- Runpublic static void getBuildVariables(@Nonnull hudson.model.Run<?,?> run, hudson.EnvVars result)
AbstractBuild
it invokes the standard method,
for other types it relies on ParametersAction
only.run
- Runresult
- Target collection, where the variables will be addedpublic static void getJDKVariables(@Nonnull hudson.model.Run<?,?> run, hudson.model.TaskListener logger, hudson.EnvVars result) throws IOException, InterruptedException
AbstractBuild
it invokes operation on the node to retrieve the data;
for other types it does nothing.run
- Runlogger
- Loggerresult
- Target collection, where the variables will be addedIOException
- Operation failureInterruptedException
- Operation has been interruptedpublic static Map<String,String> getBuildVariables(@Nonnull hudson.model.Run<?,?> run, @Nonnull org.jenkinsci.lib.envinject.EnvInjectLogger logger) throws org.jenkinsci.lib.envinject.EnvInjectException
org.jenkinsci.lib.envinject.EnvInjectException
@CheckForNull public static EnvInjectJobProperty getEnvInjectJobProperty(@Nonnull hudson.model.Run<?,?> build)
@Nonnull public static Map<String,String> getEnvVarsPreviousSteps(@Nonnull hudson.model.Run<?,?> build, @Nonnull org.jenkinsci.lib.envinject.EnvInjectLogger logger) throws IOException, InterruptedException, org.jenkinsci.lib.envinject.EnvInjectException
IOException
InterruptedException
org.jenkinsci.lib.envinject.EnvInjectException
Copyright © 2016–2017. All rights reserved.