Class BuildInfoExporterAction

java.lang.Object
hudson.plugins.parameterizedtrigger.BuildInfoExporterAction
All Implemented Interfaces:
Action, EnvironmentContributingAction, ModelObject

@ExportedBean public class BuildInfoExporterAction extends Object implements EnvironmentContributingAction
  • Field Details

  • Constructor Details

  • Method Details

    • 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 interface Action
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface ModelObject
    • getUrlName

      public String getUrlName()
      Specified by:
      getUrlName in interface Action
    • buildEnvVars

      public void buildEnvVars(AbstractBuild<?,?> build, EnvVars env)
      Specified by:
      buildEnvVars in interface EnvironmentContributingAction
    • 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:
      object extracted from old data
    • getProjectListString

      protected String getProjectListString(String separator)
      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