org.jenkinsci.plugins.relution
Class RelutionPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
org.jenkinsci.plugins.relution.RelutionPublisher
- All Implemented Interfaces:
- hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep
public class RelutionPublisher
- extends hudson.tasks.Recorder
Nested classes/interfaces inherited from class hudson.tasks.Publisher |
hudson.tasks.Publisher.DescriptorExtensionListImpl |
Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
hudson.tasks.BuildStep.PublisherList |
Fields inherited from interface hudson.tasks.BuildStep |
BUILDERS, PUBLISHERS |
Method Summary |
List<Application> |
getApplications()
Returns the application file path mask |
RelutionPublisher.DescriptorImpl |
getDescriptor()
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
Get an Monitor that monitors the whole build process |
boolean |
perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
These method is the main entry point for the build-execution
If the build with the actual number is already build without success the build will skipped
After checking the build success retrieve the build-workspace and configure the Communicator
The Communicator contains all necessary informations for the build and where to publish the file
The last step is a check of the file field which must be present, if not the build will marked unsuccessful |
Methods inherited from class hudson.tasks.Publisher |
all, getProjectAction, needsToRunAfterFinalized, prebuild |
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
getProjectAction, getProjectActions, 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, getProjectActions, prebuild |
RelutionPublisher
@DataBoundConstructor
public RelutionPublisher(List<Application> applications)
- Constructor.
- Parameters:
applicationFile
- applicationUUID
-
getApplications
public List<Application> getApplications()
- Returns the application file path mask
- Returns:
- String
perform
public boolean perform(hudson.model.AbstractBuild build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
throws IOException,
InterruptedException
- These method is the main entry point for the build-execution
If the build with the actual number is already build without success the build will skipped
After checking the build success retrieve the build-workspace and configure the Communicator
The Communicator contains all necessary informations for the build and where to publish the file
The last step is a check of the file field which must be present, if not the build will marked unsuccessful
- Specified by:
perform
in interface hudson.tasks.BuildStep
- Overrides:
perform
in class hudson.tasks.BuildStepCompatibilityLayer
- Parameters:
build
- Actual Build-Numberlauncher
- Starts the processlistener
- The Listener is resposible for the Output in the jenkins Console-log
- Throws:
IOException
InterruptedException
getDescriptor
public RelutionPublisher.DescriptorImpl getDescriptor()
- Specified by:
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
- Overrides:
getDescriptor
in class hudson.tasks.Recorder
getRequiredMonitorService
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
- Get an Monitor that monitors the whole build process
Copyright © 2004-2013. All Rights Reserved.