hudson.ivy
Class IvyBuildTrigger
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.ivy.IvyBuildTrigger
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.DependecyDeclarer, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep
public class IvyBuildTrigger
- extends hudson.tasks.Publisher
- implements hudson.model.DependecyDeclarer
Trigger the build of other project based on the Ivy dependency managment
system.
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
| Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
|
Constructor Summary |
IvyBuildTrigger(java.lang.String ivyFile,
java.lang.String ivyConfName)
Contructor |
| Methods inherited from class hudson.tasks.Publisher |
getProjectAction, needsToRunAfterFinalized, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
getProjectAction, perform, prebuild |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface hudson.tasks.BuildStep |
getProjectAction, perform, prebuild |
DESCRIPTOR
public static final IvyBuildTrigger.DescriptorImpl DESCRIPTOR
- The descriptor of this trigger
IvyBuildTrigger
public IvyBuildTrigger(java.lang.String ivyFile,
java.lang.String ivyConfName)
- Contructor
- Parameters:
ivyFile - the ivy.xml file path within the workspaceivyConfName - the Ivy configuration name to use
getIvyFile
public java.lang.String getIvyFile()
- Returns:
- the ivy.xml file path within the workspace
getIvyConfName
public java.lang.String getIvyConfName()
- Returns:
- the Ivy configuration name used
getIvyConfiguration
public IvyBuildTrigger.IvyConfiguration getIvyConfiguration()
- Returns:
- the
IvyBuildTrigger.IvyConfiguration from the ivyConfName
getIvy
public fr.jayasoft.ivy.Ivy getIvy()
- Returns:
- the Ivy instance based on the
ivyConfName
- Throws:
java.text.ParseException
java.io.IOException
getModuleDescriptor
public fr.jayasoft.ivy.ModuleDescriptor getModuleDescriptor(hudson.FilePath workspace)
- Get the last computed Ivy module descriptior created from the ivy.xml of
this trigger
- Parameters:
workspace - the path to the root of the workspace
- Returns:
- the Ivy module descriptior
- Throws:
java.text.ParseException
java.io.IOException
recomputeModuleDescriptor
public void recomputeModuleDescriptor(hudson.FilePath workspace)
- Force the creation of the module descriptor from the ivy.xml file
- Throws:
java.text.ParseException
java.io.IOException
perform
public boolean perform(hudson.model.Build<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws java.lang.InterruptedException,
java.io.IOException
- Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
- Throws:
java.lang.InterruptedException
java.io.IOException
buildDependencyGraph
public void buildDependencyGraph(hudson.model.AbstractProject owner,
hudson.model.DependencyGraph graph)
- Specified by:
buildDependencyGraph in interface hudson.model.DependecyDeclarer
getDescriptor
public hudson.model.Descriptor<hudson.tasks.Publisher> getDescriptor()
- Specified by:
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>
Copyright © 2008. All Rights Reserved.