hudson.plugins.buckminster.targetPlatform
Class TargetPlatformPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Recorder
              extended by hudson.tasks.ArtifactArchiver
                  extended by hudson.plugins.buckminster.targetPlatform.TargetPlatformPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.DependecyDeclarer, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class TargetPlatformPublisher
extends hudson.tasks.ArtifactArchiver
implements hudson.model.DependecyDeclarer

A publisher that archives a workspace directory and makes its content available under a certain name to other jobs that have a buckminster build step.

Author:
Johannes Utzig

Nested Class Summary
static class TargetPlatformPublisher.DescriptorImpl
          The descriptor implementation of this trigger
 
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
 
Field Summary
static TargetPlatformPublisher.DescriptorImpl DESCRIPTOR
          The descriptor of this publisher.
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
TargetPlatformPublisher(java.lang.String artifacts, java.lang.String excludes, boolean latestOnly, java.lang.String targetPlatformName)
           
 
Method Summary
 void buildDependencyGraph(hudson.model.AbstractProject owner, hudson.model.DependencyGraph graph)
           
 java.lang.String getTargetPlatformName()
           
 TargetPlatformReference getTargetPlatformReference(hudson.model.AbstractProject<?,?> project)
           
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          overrides ArtifactArchiver.perform(AbstractBuild, Launcher, BuildListener) so that the contents of the ArtifactArchiver.getArtifacts() is copied flat instead of preserving the directory structure file patterns are not allowed
 
Methods inherited from class hudson.tasks.ArtifactArchiver
getArtifacts, getExcludes, getRequiredMonitorService, isLatestOnly, prebuild
 
Methods inherited from class hudson.tasks.Recorder
getDescriptor
 
Methods inherited from class hudson.tasks.Publisher
all, getProjectAction, needsToRunAfterFinalized, prebuild
 
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectActions, perform
 
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
 

Field Detail

DESCRIPTOR

@Extension
public static final TargetPlatformPublisher.DescriptorImpl DESCRIPTOR
The descriptor of this publisher. It is annotated as an Extension so Hudson can automatically register this instance

Constructor Detail

TargetPlatformPublisher

@DataBoundConstructor
public TargetPlatformPublisher(java.lang.String artifacts,
                                                    java.lang.String excludes,
                                                    boolean latestOnly,
                                                    java.lang.String targetPlatformName)
Method Detail

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws java.lang.InterruptedException
overrides ArtifactArchiver.perform(AbstractBuild, Launcher, BuildListener) so that

Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.ArtifactArchiver
Throws:
java.lang.InterruptedException

getTargetPlatformReference

public TargetPlatformReference getTargetPlatformReference(hudson.model.AbstractProject<?,?> project)

getTargetPlatformName

public java.lang.String getTargetPlatformName()

buildDependencyGraph

public void buildDependencyGraph(hudson.model.AbstractProject owner,
                                 hudson.model.DependencyGraph graph)
Specified by:
buildDependencyGraph in interface hudson.model.DependecyDeclarer


Copyright © 2011. All Rights Reserved.