Class BuildInfoExporterAction
java.lang.Object
hudson.plugins.parameterizedtrigger.BuildInfoExporterAction
- All Implemented Interfaces:
Action
,EnvironmentContributingAction
,ModelObject
@ExportedBean
public class BuildInfoExporterAction
extends Object
implements EnvironmentContributingAction
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionBuildInfoExporterAction
(String buildName, int buildNumber, AbstractBuild<?, ?> parentBuild, Result buildResult) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addBuildReference
(String triggeredProject, int buildNumber, Result buildResult) void
buildEnvVars
(AbstractBuild<?, ?> build, EnvVars env) protected String
getProjectListString
(String separator) Get a list of projects as a string using the separatorList<AbstractBuild<?,
?>> Gets all the builds triggered from this one, filters out the items that were non blocking, which we don't have a builds for.List<AbstractProject<?,
?>> Gets all the projects that triggered from this one which were non blocking, which we don't have a builds for.Handle cases from older builds so that they still add old variables if needed to.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.EnvironmentContributingAction
buildEnvironment
-
Field Details
-
JOB_NAME_VARIABLE
- See Also:
-
ALL_JOBS_NAME_VARIABLE
- See Also:
-
BUILD_NUMBER_VARIABLE_PREFIX
- See Also:
-
ALL_BUILD_NUMBER_VARIABLE_PREFIX
- See Also:
-
BUILD_RESULT_VARIABLE_PREFIX
- See Also:
-
BUILD_RUN_COUNT_PREFIX
- See Also:
-
RUN
- See Also:
-
-
Constructor Details
-
BuildInfoExporterAction
-
BuildInfoExporterAction
public BuildInfoExporterAction(String buildName, int buildNumber, AbstractBuild<?, ?> parentBuild, Result buildResult)
-
-
Method Details
-
addBuildReference
-
addBuildReference
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
-
buildEnvVars
- Specified by:
buildEnvVars
in interfaceEnvironmentContributingAction
-
getTriggeredBuilds
Gets all the builds triggered from this one, filters out the items that were non blocking, which we don't have a builds for. Used in the UI for see Summary.groovy- Returns:
- a list of builds that are triggered by this build. May contains null if a project or a build is deleted.
-
getTriggeredProjects
Gets all the projects that triggered from this one which were non blocking, which we don't have a builds for. Does not include builds that are returned in #link{getTriggeredBuilds} Used in the UI for see Summary.groovy- Returns:
- List of Projects that are triggered by this build. May contains null if a project is deleted.
-
readResolve
Handle cases from older builds so that they still add old variables if needed to. Should not show any UI as there will be no data added.- Returns:
- object extracted from old data
-
getProjectListString
Get a list of projects as a string using the separator- Parameters:
separator
- string to separate the list of projects- Returns:
- list of projects separated by separator
-