org.jenkinsci.plugins.packagecloud
Class ArtifactPublisher
java.lang.Object
hudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Notifier
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 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 |
| 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 |
DESCRIPTOR
@Extension
public static final ArtifactPublisher.DescriptorImpl DESCRIPTOR
- Hold an instance of the Descriptor implementation of this publisher.
ArtifactPublisher
@DataBoundConstructor
public ArtifactPublisher(String username,
String repository,
String distro)
- Instantiates a new Artifact publisher.
- Parameters:
username - the usernamerepository - the repositorydistro - the distro
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.