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
Nested Classes Modifier and Type Class Description static class
BuildInfoExporterAction.BuildReference
-
Field Summary
Fields Modifier and Type Field Description static String
ALL_BUILD_NUMBER_VARIABLE_PREFIX
static String
ALL_JOBS_NAME_VARIABLE
static String
BUILD_NUMBER_VARIABLE_PREFIX
static String
BUILD_RESULT_VARIABLE_PREFIX
static String
BUILD_RUN_COUNT_PREFIX
static String
JOB_NAME_VARIABLE
static String
RUN
-
Constructor Summary
Constructors Constructor Description BuildInfoExporterAction(BuildInfoExporterAction.BuildReference buildRef)
BuildInfoExporterAction(String buildName, int buildNumber, AbstractBuild<?,?> parentBuild, Result buildResult)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBuildReference(BuildInfoExporterAction.BuildReference buildRef)
void
addBuildReference(String triggeredProject, int buildNumber, Result buildResult)
void
buildEnvVars(AbstractBuild<?,?> build, EnvVars env)
String
getDisplayName()
String
getIconFileName()
protected String
getProjectListString(String separator)
Get a list of projects as a string using the separatorList<AbstractBuild<?,?>>
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.List<AbstractProject<?,?>>
getTriggeredProjects()
Gets all the projects that triggered from this one which were non blocking, which we don't have a builds for.String
getUrlName()
Object
readResolve()
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 Detail
-
JOB_NAME_VARIABLE
public static final String JOB_NAME_VARIABLE
- See Also:
- Constant Field Values
-
ALL_JOBS_NAME_VARIABLE
public static final String ALL_JOBS_NAME_VARIABLE
- See Also:
- Constant Field Values
-
BUILD_NUMBER_VARIABLE_PREFIX
public static final String BUILD_NUMBER_VARIABLE_PREFIX
- See Also:
- Constant Field Values
-
ALL_BUILD_NUMBER_VARIABLE_PREFIX
public static final String ALL_BUILD_NUMBER_VARIABLE_PREFIX
- See Also:
- Constant Field Values
-
BUILD_RESULT_VARIABLE_PREFIX
public static final String BUILD_RESULT_VARIABLE_PREFIX
- See Also:
- Constant Field Values
-
BUILD_RUN_COUNT_PREFIX
public static final String BUILD_RUN_COUNT_PREFIX
- See Also:
- Constant Field Values
-
RUN
public static final String RUN
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
BuildInfoExporterAction
public BuildInfoExporterAction(BuildInfoExporterAction.BuildReference buildRef)
-
BuildInfoExporterAction
public BuildInfoExporterAction(String buildName, int buildNumber, AbstractBuild<?,?> parentBuild, Result buildResult)
-
-
Method Detail
-
addBuildReference
public void addBuildReference(String triggeredProject, int buildNumber, Result buildResult)
-
addBuildReference
public void addBuildReference(BuildInfoExporterAction.BuildReference buildRef)
-
getIconFileName
public String getIconFileName()
- Specified by:
getIconFileName
in interfaceAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
-
buildEnvVars
public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env)
- Specified by:
buildEnvVars
in interfaceEnvironmentContributingAction
-
getTriggeredBuilds
@Exported(visibility=1) public List<AbstractBuild<?,?>> 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
@Exported(visibility=1) public List<AbstractProject<?,?>> 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
public Object 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:
-
-