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.LastBuildActionFactoryBuildStep.PublisherListExtensionPoint.LegacyInstancesAreScopedToHudsonBUILDERS, 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, prebuildgetProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitperform, perform, requiresWorkspacegetProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuildpublic 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 SimpleBuildStepIOExceptionInterruptedExceptionpublic NexusArtifactUploader.DescriptorImpl getDescriptor()
getDescriptor in interface Describable<Builder>getDescriptor in class BuilderCopyright © 2016–2022. All rights reserved.