public class NexusArtifactUploader extends Builder implements SimpleBuildStep, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
NexusArtifactUploader.DescriptorImpl<C extends com.cloudbees.plugins.credentials.common.StandardCredentials> |
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
BuildStep.PublisherList
ExtensionPoint.LegacyInstancesAreScopedToHudson
BUILDERS, PUBLISHERS
Constructor and Description |
---|
NexusArtifactUploader(String nexusVersion,
String protocol,
String nexusUrl,
String groupId,
String version,
String repository,
String credentialsId,
List<Artifact> artifacts) |
Modifier and Type | Method and Description |
---|---|
List<Artifact> |
getArtifacts() |
com.cloudbees.plugins.credentials.common.StandardUsernameCredentials |
getCredentials(Item project) |
String |
getCredentialsId() |
NexusArtifactUploader.DescriptorImpl |
getDescriptor() |
String |
getGroupId() |
String |
getNexusUrl() |
String |
getNexusVersion() |
String |
getPassword(EnvVars environment,
Item project) |
String |
getProtocol() |
String |
getRepository() |
String |
getUsername(EnvVars environment,
Item project) |
String |
getVersion() |
static com.cloudbees.plugins.credentials.common.StandardUsernameCredentials |
lookupSystemCredentials(String credentialsId,
Item project) |
void |
perform(Run build,
FilePath workspace,
Launcher launcher,
TaskListener listener) |
all, getRequiredMonitorService, prebuild
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
perform, perform, requiresWorkspace
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
public String getNexusVersion()
public String getProtocol()
public String getNexusUrl()
public String getGroupId()
public String getVersion()
public String getRepository()
@Nullable public String getCredentialsId()
public com.cloudbees.plugins.credentials.common.StandardUsernameCredentials getCredentials(Item project)
public static com.cloudbees.plugins.credentials.common.StandardUsernameCredentials lookupSystemCredentials(String credentialsId, Item project)
public void perform(Run build, FilePath workspace, Launcher launcher, TaskListener listener) throws IOException, InterruptedException
perform
in interface SimpleBuildStep
IOException
InterruptedException
public NexusArtifactUploader.DescriptorImpl getDescriptor()
getDescriptor
in interface Describable<Builder>
getDescriptor
in class Builder
Copyright © 2016–2022. All rights reserved.