|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.triggers.Trigger<SCMedItem>
hudson.triggers.SCMTrigger
public class SCMTrigger
Trigger that checks for SCM updates periodically.
| Nested Class Summary | |
|---|---|
static class |
SCMTrigger.AdministrativeMonitorImpl
|
static class |
SCMTrigger.BuildAction
Associated with AbstractBuild to show the polling log
that triggered that build. |
static class |
SCMTrigger.DescriptorImpl
|
class |
SCMTrigger.Runner
Runnable that actually performs polling. |
class |
SCMTrigger.SCMAction
Action object for Project. |
static class |
SCMTrigger.SCMTriggerCause
|
| Nested classes/interfaces inherited from class hudson.triggers.Trigger |
|---|
Trigger.Cron |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Field Summary | |
|---|---|
static long |
STARVATION_THRESHOLD
How long is too long for a polling activity to be in the queue? |
| Fields inherited from class hudson.triggers.Trigger |
|---|
job, spec, tabs, timer |
| Constructor Summary | |
|---|---|
SCMTrigger(String scmpoll_spec)
|
|
SCMTrigger(String scmpoll_spec,
boolean ignorePostCommitHooks)
|
|
| Method Summary | |
|---|---|
SCMTrigger.DescriptorImpl |
getDescriptor()
Gets the descriptor for this instance. |
File |
getLogFile()
Returns the file that records the last/current polling activity. |
Collection<? extends Action> |
getProjectActions()
Actions to be displayed in the job page. |
boolean |
isIgnorePostCommitHooks()
This trigger wants to ignore post-commit hooks. |
void |
run()
Executes the triggered task. |
void |
run(Action[] additionalActions)
Run the SCM trigger with additional build actions. |
| Methods inherited from class hudson.triggers.Trigger |
|---|
all, checkTriggers, for_, getProjectAction, getSpec, init, readResolve, start, stop |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static long STARVATION_THRESHOLD
| Constructor Detail |
|---|
public SCMTrigger(String scmpoll_spec)
throws antlr.ANTLRException
antlr.ANTLRException
@DataBoundConstructor
public SCMTrigger(String scmpoll_spec,
boolean ignorePostCommitHooks)
throws antlr.ANTLRException
antlr.ANTLRException| Method Detail |
|---|
public boolean isIgnorePostCommitHooks()
SCM plugins must respect this and not run this trigger for post-commit notifications.
public void run()
TriggerTrigger.Trigger(String) is used
to create an instance, and the crontab matches the current time.
run in class Trigger<SCMedItem>public void run(Action[] additionalActions)
additionalActions - public SCMTrigger.DescriptorImpl getDescriptor()
Describable
Descriptor is a singleton for every concrete Describable
implementation, so if a.getClass()==b.getClass() then
a.getDescriptor()==b.getDescriptor() must hold.
getDescriptor in interface Describable<Trigger<?>>getDescriptor in class Trigger<SCMedItem>public Collection<? extends Action> getProjectActions()
TriggerActions to be displayed in the job page.
getProjectActions in class Trigger<SCMedItem>public File getLogFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||