Class BuildAddedCause
- java.lang.Object
-
- hudson.model.Cause
-
- eu.royalsloth.depbuilder.jenkins.actions.BuildAddedCause
-
public class BuildAddedCause extends Cause
Custom cause that is used in order to get the build callback just before the project/job is added into the queue (at least I think this is the order of actions based on the debug logs).Without this callback there was a problem with scheduling the project and getting back their latest build. For some reason that was often returned as null during automated tests, and this callback fixes that problem.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class hudson.model.Cause
Cause.LegacyCodeCause, Cause.RemoteCause, Cause.UpstreamCause, Cause.UserCause, Cause.UserIdCause
-
-
Constructor Summary
Constructors Constructor Description BuildAddedCause()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Run<?,?>>
getBuild()
String
getShortDescription()
void
onAddedTo(Run build)
-