Class GerritDependencyAction
java.lang.Object
hudson.model.InvisibleAction
com.sonyericsson.hudson.plugins.gerrit.trigger.dependency.GerritDependencyAction
- All Implemented Interfaces:
Action,EnvironmentContributingAction,ModelObject
public class GerritDependencyAction
extends InvisibleAction
implements EnvironmentContributingAction
Adds Action that stores the data about dependency jobs.
-
Constructor Summary
ConstructorsConstructorDescriptionGerritDependencyAction(List<Run> runs) Saves the important information about the parent runs to be persistent. -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildEnvironment(Run<?, ?> run, EnvVars env) The same asbuildEnvVars, but for Run.voidbuildEnvVars(AbstractBuild<?, ?> build, EnvVars env) Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
Constructor Details
-
GerritDependencyAction
Saves the important information about the parent runs to be persistent. Stores string to keep the data even if original execution of parent job would be removed from history.- Parameters:
runs- List of runs it depend on
-
-
Method Details
-
buildEnvironment
The same asbuildEnvVars, but for Run. Part of Core API since Jenkins 2.76. See https://issues.jenkins-ci.org/browse/JENKINS-29537 for more details.- Specified by:
buildEnvironmentin interfaceEnvironmentContributingAction- Parameters:
run- The calling build.env- Environment variables should be added to this map.
-
buildEnvVars
- Specified by:
buildEnvVarsin interfaceEnvironmentContributingAction
-