public class IvyBuildTrigger
extends hudson.tasks.Notifier
implements jenkins.model.DependencyDeclarer
| Modifier and Type | Class and Description |
|---|---|
static class |
IvyBuildTrigger.DescriptorImpl
The descriptor implementation of this trigger
|
static class |
IvyBuildTrigger.IvyConfiguration
Container for the Ivy configuration.
|
static class |
IvyBuildTrigger.UserCause
This cause is used when triggering downstream builds from the external event trigger.
|
hudson.tasks.Publisher.DescriptorExtensionListImpl| Modifier and Type | Field and Description |
|---|---|
static IvyBuildTrigger.DescriptorImpl |
DESCRIPTOR
The descriptor of this trigger.
|
| Constructor and Description |
|---|
IvyBuildTrigger(java.lang.String ivyFile,
java.lang.String ivyConfName)
Deprecated.
|
IvyBuildTrigger(java.lang.String ivyFile,
java.lang.String ivyConfName,
java.lang.String ivyPropertiesFile,
boolean triggerWhenUnstable,
boolean useUpstreamParameters)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildDependencyGraph(hudson.model.AbstractProject owner,
hudson.model.DependencyGraph graph)
Build the dependency graph based on the Ivy ModuleDescriptor for this trigger.
|
org.apache.ivy.Ivy |
getIvy(java.io.File localFilePath,
java.lang.String propertyFile) |
java.lang.String |
getIvyConfName() |
java.lang.String |
getIvyFile() |
java.lang.String |
getIvyPropertiesFile() |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
boolean |
isTriggerWhenUnstable() |
boolean |
isUseUpstreamParameters() |
boolean |
needsToRunAfterFinalized()
IvyBuildTrigger is only responsible for helping to build dependency graphs based on Ivy settings and configuration.
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
The BuildStep perform implementation.
|
@Extension public static final IvyBuildTrigger.DescriptorImpl DESCRIPTOR
@DataBoundConstructor
public IvyBuildTrigger(java.lang.String ivyFile,
java.lang.String ivyConfName,
java.lang.String ivyPropertiesFile,
boolean triggerWhenUnstable,
boolean useUpstreamParameters)
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.useUpstreamParameters - @Deprecated
public IvyBuildTrigger(java.lang.String ivyFile,
java.lang.String ivyConfName)
IvyBuildTrigger(String, String, String, boolean, boolean) insteadivyFile - the ivy.xml file path within the workspaceivyConfName - the Ivy configuration name to usepublic java.lang.String getIvyPropertiesFile()
public java.lang.String getIvyFile()
public java.lang.String getIvyConfName()
public boolean isTriggerWhenUnstable()
public boolean isUseUpstreamParameters()
public org.apache.ivy.Ivy getIvy(java.io.File localFilePath,
java.lang.String propertyFile)
ivyConfNamepublic boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.lang.InterruptedException,
java.io.IOException
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerjava.lang.InterruptedExceptionjava.io.IOExceptionpublic boolean needsToRunAfterFinalized()
needsToRunAfterFinalized in class hudson.tasks.Publisherperform(AbstractBuild, Launcher, BuildListener)public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildSteppublic void buildDependencyGraph(hudson.model.AbstractProject owner,
hudson.model.DependencyGraph graph)
buildDependencyGraph in interface jenkins.model.DependencyDeclarerowner - the project this trigger belongs tograph - the DependencyGraph to which computed dependencies are added