Class PersistBuildInfoAction
- java.lang.Object
-
- hudson.model.InvisibleAction
-
- eu.royalsloth.depbuilder.jenkins.actions.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 Summary
Constructors Constructor Description PersistBuildInfoAction(String pipeline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBuild(Run<?,?> build)
void
addCancelledBuild(String projectName)
Add a build that was cancelled during the build or while it staid in the queue.List<Run<?,?>>
getBuildInfo()
Set<String>
getCancelledBuilds()
String
getPipeline()
void
setPipeline(String pipeline)
-
Methods inherited from class hudson.model.InvisibleAction
getDisplayName, getIconFileName, getUrlName
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.model.Action
getDisplayName, getIconFileName, getUrlName
-
-
-
-
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.
-
-