Package org.jenkinsci.plugins.deployment
Class DeploymentTrigger
- java.lang.Object
-
- hudson.triggers.Trigger<Job>
-
- org.jenkinsci.plugins.deployment.DeploymentTrigger
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Trigger<?>>
public class DeploymentTrigger extends Trigger<Job>
Trigger
that fires when artifacts are deployed.- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeploymentTrigger.DescriptorImpl
static class
DeploymentTrigger.ListenerImpl
Whenever a new deployment record arrives, check if we need to trigger any jobs.static class
DeploymentTrigger.Triggered
Marks the jobs that have already been triggered as a result ofDeploymentTrigger
to avoid multi-firing when additional hosts check in.-
Nested classes/interfaces inherited from class hudson.triggers.Trigger
Trigger.Cron
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description DeploymentTrigger(String upstreamJob, Condition cond)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
checkAndFire(DeploymentFacet facet)
Deprecated.void
checkAndFire(DeploymentFacet facet, HostRecord hostRecord)
Condition
getCond()
String
getUpstreamJob()
static void
sync()
-
Methods inherited from class hudson.triggers.Trigger
all, checkTriggers, for_, getDescriptor, getProjectAction, getProjectActions, getSpec, readResolve, run, start, stop
-
-
-
-
Method Detail
-
getUpstreamJob
public String getUpstreamJob()
-
getCond
public Condition getCond()
-
checkAndFire
@Deprecated public void checkAndFire(DeploymentFacet facet)
Deprecated.
-
checkAndFire
public void checkAndFire(DeploymentFacet facet, @CheckForNull HostRecord hostRecord)
-
sync
public static void sync() throws InterruptedException
- Throws:
InterruptedException
-
-