Package hudson.ivy
Class IvyBuildTrigger
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
hudson.ivy.IvyBuildTrigger
- All Implemented Interfaces:
ExtensionPoint
,Describable<Publisher>
,BuildStep
,DependencyDeclarer
Trigger the build of other project based on the Ivy dependency management system.
- Author:
- jmetcalf@dev.java.net, martinficker@dev.java.net, hibou@dev.java.net, tbingaman@dev.java.net
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
The descriptor implementation of this triggerstatic class
Container for the Ivy configuration.static class
This cause is used when triggering downstream builds from the external event trigger.Nested classes/interfaces inherited from class hudson.tasks.Publisher
Publisher.DescriptorExtensionListImpl
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IvyBuildTrigger.DescriptorImpl
The descriptor of this trigger.Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
Constructor Summary
ConstructorsConstructorDescriptionIvyBuildTrigger
(String ivyFile, String ivyConfName) Deprecated.IvyBuildTrigger
(String ivyFile, String ivyConfName, String ivyPropertiesFile, boolean triggerWhenUnstable, boolean useUpstreamParameters) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildDependencyGraph
(AbstractProject owner, DependencyGraph graph) Build the dependency graph based on the Ivy ModuleDescriptor for this trigger.org.apache.ivy.Ivy
boolean
boolean
boolean
IvyBuildTrigger is only responsible for helping to build dependency graphs based on Ivy settings and configuration.boolean
perform
(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) The BuildStep perform implementation.Methods inherited from class hudson.tasks.Notifier
getDescriptor
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, prebuild
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform, prebuild
-
Field Details
-
DESCRIPTOR
The descriptor of this trigger. It is annotated as an Extension so Jenkins can automatically register this instance as associated with IvyBuildTrigger.
-
-
Constructor Details
-
IvyBuildTrigger
@DataBoundConstructor public IvyBuildTrigger(String ivyFile, String ivyConfName, String ivyPropertiesFile, boolean triggerWhenUnstable, boolean useUpstreamParameters) Constructor- Parameters:
ivyFile
- the ivy.xml file path within the workspaceivyConfName
- the Ivy configuration name to useivyPropertiesFile
- the Ivy properties file path within the workspacetriggerWhenUnstable
- true if this build should be triggered even when an upstream build in Unstable. false if this build should be triggered only when an upstream build is Successful.
-
IvyBuildTrigger
Deprecated.Constructor- Parameters:
ivyFile
- the ivy.xml file path within the workspaceivyConfName
- the Ivy configuration name to use
-
-
Method Details
-
getIvyPropertiesFile
-
getIvyFile
- Returns:
- the ivy.xml file path within the workspace
-
getIvyConfName
- Returns:
- the Ivy configuration name used
-
isTriggerWhenUnstable
public boolean isTriggerWhenUnstable() -
isUseUpstreamParameters
public boolean isUseUpstreamParameters() -
getIvy
- Returns:
- the Ivy instance based on the
ivyConfName
-
perform
public boolean perform(AbstractBuild<?, ?> build, Launcher launcher, BuildListener listener) throws InterruptedException, IOExceptionThe BuildStep perform implementation. It performs a conditional recomputation of the project ModuleDescriptor.- Specified by:
perform
in interfaceBuildStep
- Overrides:
perform
in classBuildStepCompatibilityLayer
- Returns:
- always returns true so the build can continue
- Throws:
InterruptedException
IOException
-
needsToRunAfterFinalized
public boolean needsToRunAfterFinalized()IvyBuildTrigger is only responsible for helping to build dependency graphs based on Ivy settings and configuration. It never alters build status and its execution time should not be included in build time.- Overrides:
needsToRunAfterFinalized
in classPublisher
- Returns:
- always returns true meaning that the perform method will not run until the build is marked complete
- See Also:
-
getRequiredMonitorService
- Specified by:
getRequiredMonitorService
in interfaceBuildStep
-
buildDependencyGraph
Build the dependency graph based on the Ivy ModuleDescriptor for this trigger.- Specified by:
buildDependencyGraph
in interfaceDependencyDeclarer
- Parameters:
owner
- the project this trigger belongs tograph
- the DependencyGraph to which computed dependencies are added
-
IvyBuildTrigger(String, String, String, boolean, boolean)
instead