Class PersistBuildInfoAction

  • All Implemented Interfaces:
    Action, ModelObject

    public class PersistBuildInfoAction
    extends InvisibleAction
    implements Action
    Action that is used for persisting build information: exact pipeline string that was used and build info about the projects that this plugin has triggered. By adding this action to the build process and filling it with data, this data will be stored in the build.xml file.

    By default all private non transient fields are persisted (with or without getters) Getters are not persisted, only fields are.

    • Constructor Detail

      • PersistBuildInfoAction

        public PersistBuildInfoAction​(String pipeline)
    • Method Detail

      • setPipeline

        public void setPipeline​(String pipeline)
      • getPipeline

        public String getPipeline()
      • addBuild

        public void addBuild​(Run<?,​?> build)
      • addCancelledBuild

        public void addCancelledBuild​(String projectName)
        Add a build that was cancelled during the build or while it staid in the queue. Such builds are later shown in the UI as canceled build.
      • getCancelledBuilds

        public Set<String> getCancelledBuilds()
      • getBuildInfo

        public List<Run<?,​?>> getBuildInfo()