org.jenkinsci.plugins.packagecloud
Class ArtifactPublisher

java.lang.Object
  extended by hudson.tasks.BuildStepCompatibilityLayer
      extended by hudson.tasks.Publisher
          extended by hudson.tasks.Notifier
              extended by org.jenkinsci.plugins.packagecloud.ArtifactPublisher
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.tasks.Publisher>, hudson.tasks.BuildStep

public class ArtifactPublisher
extends hudson.tasks.Notifier

The type Artifact publisher.


Nested Class Summary
static class ArtifactPublisher.DescriptorImpl
          BuildStepDescriptor
 
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 ArtifactPublisher.DescriptorImpl DESCRIPTOR
          Hold an instance of the Descriptor implementation of this publisher.
 
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
 
Constructor Summary
ArtifactPublisher(String username, String repository, String distro)
          Instantiates a new Artifact publisher.
 
Method Summary
 String getDistro()
          Gets distro.
 String getRepository()
          We'll use this from the config.jelly.
 hudson.tasks.BuildStepMonitor getRequiredMonitorService()
           
 String getUsername()
          Gets username.
 boolean isSupportedPackage(String filename)
          Is supported package.
 boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
          
 
Methods inherited from class hudson.tasks.Notifier
getDescriptor
 
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
 

Field Detail

DESCRIPTOR

@Extension
public static final ArtifactPublisher.DescriptorImpl DESCRIPTOR
Hold an instance of the Descriptor implementation of this publisher.

Constructor Detail

ArtifactPublisher

@DataBoundConstructor
public ArtifactPublisher(String username,
                                              String repository,
                                              String distro)
Instantiates a new Artifact publisher.

Parameters:
username - the username
repository - the repository
distro - the distro
Method Detail

getRepository

public String getRepository()
We'll use this from the config.jelly.

Returns:
the repository

getDistro

public String getDistro()
Gets distro.

Returns:
the distro

getUsername

public String getUsername()
Gets username.

Returns:
the username

getRequiredMonitorService

public hudson.tasks.BuildStepMonitor getRequiredMonitorService()

isSupportedPackage

public boolean isSupportedPackage(String filename)
Is supported package.

Parameters:
filename - the filename
Returns:
the boolean

perform

public boolean perform(hudson.model.AbstractBuild<?,?> build,
                       hudson.Launcher launcher,
                       hudson.model.BuildListener listener)
                throws InterruptedException,
                       IOException

Specified by:
perform in interface hudson.tasks.BuildStep
Overrides:
perform in class hudson.tasks.BuildStepCompatibilityLayer
Parameters:
build -
launcher -
listener -
Returns:
Throws:
InterruptedException
IOException


Copyright © 2004-2014. All Rights Reserved.