Package hudson.triggers
Class SCMTrigger.SCMTriggerCause
- java.lang.Object
-
- hudson.model.Cause
-
- hudson.triggers.SCMTrigger.SCMTriggerCause
-
- Enclosing class:
- SCMTrigger
public static class SCMTrigger.SCMTriggerCause extends Cause
-
-
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 SCMTriggerCause()Deprecated.SCMTriggerCause(File logFile)SCMTriggerCause(String pollingLog)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)RungetRun()StringgetShortDescription()One-line human-readable text of the cause.inthashCode()voidonAddedTo(Run build)Called when the cause is registered.voidonLoad(Run run)Called when a build is loaded from disk.
-
-
-
Constructor Detail
-
SCMTriggerCause
public SCMTriggerCause(File logFile) throws IOException
- Throws:
IOException
-
SCMTriggerCause
public SCMTriggerCause(String pollingLog)
-
SCMTriggerCause
@Deprecated public SCMTriggerCause()
Deprecated.
-
-
Method Detail
-
onLoad
public void onLoad(Run run)
Description copied from class:CauseCalled when a build is loaded from disk. Useful in case the cause needs to keep a build reference; this ought to betransient.
-
onAddedTo
public void onAddedTo(Run build)
Description copied from class:CauseCalled when the cause is registered.
-
getShortDescription
public String getShortDescription()
Description copied from class:CauseOne-line human-readable text of the cause. Historically, this method's return value was used to render HTML on the UI as well. Since Jenkins 2.315 and 2.303.2, the return value is interpreted as text. To have rich HTML output on the UI, provide a customdescription.jellyview for your subclass. See the documentation.- Specified by:
getShortDescriptionin classCause
-
getRun
@Restricted(org.kohsuke.accmod.restrictions.DoNotUse.class) public Run getRun()
-
-