public class ArtifactPublisher
extends hudson.tasks.Notifier
Modifier and Type | Class and Description |
---|---|
static class |
ArtifactPublisher.DescriptorImpl
BuildStepDescriptor
|
hudson.tasks.Publisher.DescriptorExtensionListImpl
Modifier and Type | Field and Description |
---|---|
static ArtifactPublisher.DescriptorImpl |
DESCRIPTOR
Hold an instance of the Descriptor implementation of this publisher.
|
Constructor and Description |
---|
ArtifactPublisher(String username,
String repository,
String distro,
String hostname,
String port,
String protocol,
String repositoryOwner,
Boolean verbose)
Instantiates a new Artifact publisher.
|
Modifier and Type | Method and Description |
---|---|
String |
getDistro()
Gets distro.
|
String |
getHostname()
Gets hostname.
|
String |
getPort() |
String |
getProtocol() |
String |
getRepository()
We'll use this from the config.jelly.
|
String |
getRepositoryOwner()
We'll use this from the config.jelly.
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
String |
getUsername()
Gets username.
|
Boolean |
getVerbose() |
boolean |
isSupportedPackage(String filename)
Is supported package.
|
static String |
logFormat(String message) |
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener) |
all, getProjectAction, needsToRunAfterFinalized, prebuild
@Extension public static final ArtifactPublisher.DescriptorImpl DESCRIPTOR
@DataBoundConstructor public ArtifactPublisher(String username, String repository, String distro, String hostname, String port, String protocol, String repositoryOwner, Boolean verbose)
username
- the usernamerepository
- the repositorydistro
- the distrohostname
- the hostnameport
- the portprotocol
- the protocolrepositoryOwner
- the repository owner (for collab)verbose
- if verbosepublic String getRepository()
public String getRepositoryOwner()
public String getDistro()
public String getUsername()
public String getHostname()
public String getPort()
public String getProtocol()
public Boolean getVerbose()
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
public boolean isSupportedPackage(String filename)
filename
- the filenamepublic boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener) throws InterruptedException, IOException
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
build
- launcher
- listener
- InterruptedException
IOException
Copyright © 2016–2018. All rights reserved.